[PHP] Substitution Operator

2003-10-20 Thread Nigel Peck - MIS Web Design
Hi, I'm looking for the PHP equivalent to the Perl: $var =~ s/regex/string/g Substitute all occurrences of regex in $var with string. TIA Nigel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Substitution Operator

2003-10-20 Thread John Nichel
Nigel Peck - MIS Web Design wrote: Hi, I'm looking for the PHP equivalent to the Perl: $var =~ s/regex/string/g Substitute all occurrences of regex in $var with string. TIA Nigel The online manual is a real good place to start. http://us4.php.net/preg_replace -- By-Tor.com It's all about

RE: [PHP] Substitution Operator

2003-10-20 Thread Nigel Peck - MIS Web Design
: [PHP] Substitution Operator Nigel Peck - MIS Web Design wrote: Hi, I'm looking for the PHP equivalent to the Perl: $var =~ s/regex/string/g Substitute all occurrences of regex in $var with string. TIA Nigel The online manual is a real good place to start. http