2009/10/5 The Editor <[email protected]>: > I don't know how to realistically verify this, but I've been told > string handling is significantly faster than regex. That's why I try > to use these functions whenever possible.
I think it may depend on what kind of regex. I've done some experimenting lately working on the PmWiki TextExtract addon, which works like a mini markup engine and has many replace rules. In some cases i could do a simple compare between a rule using regex replace and the same using some string replacing, and i found that the regex was actually faster. So that's why i would not hesitate to use regex, unless the str_replace is a very simple string for string substitution. But that's just me. cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
