note 25528 added to function.preg-replace
| From: | cchee at direcInternet dot com | Date: | Thu, 26 Sep 2002 18:09:19 +0000 |
| Subject: | note 25528 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37296@lists.php.net to get a copy of this message | ||
I am trying to solve this problem with regexp and not sure what expression I should use...
In the string that I have, I need to convert all " and ' to " and '
respectively, with the exception of any " and ' within html tag e.g. <img
src="image.gif"> and <a href="http://www.php.net">. Can anyone help? thanks in
advance.
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+25528
http://master.php.net/manage/user-notes.php?action=delete+25528
http://master.php.net/manage/user-notes.php?action=reject+25528