regular expressins performance
-
I'm creating a new program. The ONLY thing which is important for me is the running time of the program. Should I use a regular expressions, or maybe should I write my own search code?
-
I'm creating a new program. The ONLY thing which is important for me is the running time of the program. Should I use a regular expressions, or maybe should I write my own search code?
yftah1989 wrote:
Should I use a regular expressions, or maybe should I write my own search code
You should use the faster approach. :-D Seriously it may depend on a some factors like the complexity of your regex queries and the efficiency of your own search code (standard regex code is usually quite fast) :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]