Fw: [PHP] preg_replace (underscore)

2002-10-29 Thread Shawn McKenzie
str_replace for underscores and it's worked wonderfully. -Original Message- From: Shawn McKenzie [mailto:nospam;mckenzies.net] Sent: Monday, October 28, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_replace (underscore) Why does preg_replace(^\W^,,$str); not remove

[PHP] preg_replace (underscore)

2002-10-28 Thread Shawn McKenzie
Why does preg_replace(^\W^,,$str); not remove undescores _ ? Are they alpha-numeric? I had to do this preg_replace(^\W|_^,,$str); TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_replace (underscore)

2002-10-28 Thread John Meyer
i've just used str_replace for underscores and it's worked wonderfully. -Original Message- From: Shawn McKenzie [mailto:nospam;mckenzies.net] Sent: Monday, October 28, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_replace (underscore) Why does preg_replace(^\W^,,$str