RE: [PHP] ereg_replace and strings with "
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Mon, 20 Nov 2000 03:22:29 +0000 |
| Subject: | RE: [PHP] ereg_replace and strings with " | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26186@lists.php.net to get a copy of this message | ||
hmm,
have you tried:
ereg_replace ('\".*\"',"stuff to replace",$string);
Haven't tried it though, but should work (famous last words).
-----Original Message-----
From: Robert Mena [mailto:rt_mena@yahoo.com]
Sent: November 20, 2000 11:18 AM
To: php mailing list
Subject: [PHP] ereg_replace and strings with "
hi, I am trying to search and replace some text with
another.
I am trying to use ereg and ereg_replace but I got
stucked in a problem : how do I specify that the
string it should find/replace should have double
quotes (") somewhere in the middle of it?
For ex.
original test = my test was "ok" but I did not
complete it.
I want to replace "ok" (with the quotes) with another
thing.
Using \" in the search string did not work.
thanks.
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net