The original line in your text file had an extra \ in it (right before the '). You didn't add that to what you told him to replace. Is it supposed to be there? (It isn't showing in here for some reason)
[disable]$filename=preg_replace("/[.!:\\\?\^\'\"\$]/", '', $thread[title]);[/disable]
Quote:
Originally posted by Logician
I tried parse out special characters from thread title so that file name will be nice but some may be missed. In your example it was : char. It's no big deal but if it bothers you, there are 2 possible solutions:
1- edit line:
$filename=preg_replace("/[.!\\\?\^\'\"\$]/", '', $thread[title]);
and replace it as:
$filename=preg_replace("/[.!:\\\?\^\'\"\$]/", '', $thread[title]);
(This will parse out : char too)
|