Re: [PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Derek C Hopkins
ot;, "'"); //put whatever characters here trim(str_replace($invalidChars, "",$string)) - Original Message - From: "Derek C Hopkins" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 31, 2007 1:10 PM Subject: [PHP-WIN] using preg_replace or equ

Re: [PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Phillip Terry
;Derek C Hopkins" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 31, 2007 1:10 PM Subject: [PHP-WIN] using preg_replace or equivelent Hi All Not knowing cgi-script I am having trouble understanding the preg_replace function in PHP. What I want to do is remove all ocur

[PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Derek C Hopkins
Hi All Not knowing cgi-script I am having trouble understanding the preg_replace function in PHP. What I want to do is remove all ocurances of the following items from a string All spaces, open brackets, close brackets, apostriphy, and period (full stop)