I\'m writing PHP code to parse a string. It needs to be as fast as possible, so are regular expressions the way to go? I have a hunch that PHP string functions are more expe
In general, string functions are faster and regex functions are more flexible.
As with anything else, your results may vary, the only way to know for sure is to try it both ways and benchmark.