RegEx vs. Manually Parsing String (PHP Performance) -


is there problem (performance-wise) manually parsing string follows, opposed using regular expressions or built in string replacement functions?

for ($i=0;$i<strlen($string);$i++) {     $thischar = $string[$i];     //do more stuff } 

thanks!

there things done more efficient custom code regex.

as long both have same o complexity , not handling humongous strings, readability , maintainability should equally or more important argument.

for actual performance benchmark compare 2 solutions.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -