vb.org Archive
>
vBulletin 3 Discussion
>
vB3 Programming Discussions
> What's faster? preg_replace or str_replace?
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.