> You don't need to escape the apostrophe if the pattern isn't > quoted with apostrophes in PHP or delimited by apostrophes in > the PREG pattern. But generally there's no harm in escaping > characters unnecessarily; it just makes for messier code. > > Here is a simple test of the regexp I recommended yesterday > using the pattern: > "/^[A-Za-z0-9!@#$%&()*;:_.'\/\\\\ ]+$/" Ok, after a lot of testing and seriously losing it, this is what appears to be the issue. Blank lines or \n or some kind of carriage return is not allowed. The first example works, the others don't. I tried adding a carriage return, but who knows, I may be way out on left field with this. It's insane. sdfasd:spacespacespace http://fsdgas.asfs.asfs/ dfgfasg ------- sdfasd:spacespacespace http://fsdgas.asfs.asfs/ dfgfasg ------- Abcdefg abcfder@#$ If there is another solution to doing this, I would definitely prefer it. This is just way to buggy, and I ran out of patience a week ago. This is on a production site, and is the only reason I have tried to get it working. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php