Log in

View Full Version : What's faster? preg_replace or str_replace?


ThorstenA
08-14-2007, 08:53 AM
Title says it all, what's faster? Preg_replace or str_replace if I just want to change templates by writing plugins?

Eikinskjaldi
08-14-2007, 09:08 AM
str_replace.

Simple text comparison is always faster than regex.