Tuesday, 10 September 2013

Is regex ever more efficient than string functions in PHP?

Is regex ever more efficient than string functions in PHP?

Whenever I see questions regarding regex on SO, everyone says that regex
is slower than string functions. Are there cases when regex is faster than
string functions? Or is regex purely for convenience?

No comments:

Post a Comment