Forum Moderators: coopster
I just run a preg_replace [php.net] on a 213K file. Processing was still very fast. If you get really large strings from a file it might indeed be better to run the re on chunks of the file.
nl2br [php.net] might be helpful as well.
Andreas
And yes, it's input from a file... Size anywhere between a few Kb up to almost 50...
It's working again now .. Don't know why it didn't for a while. :)