Re: Regular Expression help need

From: Date: Fri, 25 Jul 2008 11:53:31 +0000
Subject: Re: Regular Expression help need
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-277300@lists.php.net to get a copy of this message
> How can I make a string with & (NOT &amp;, &gt;, &lt; or &quot;), <, > > xml > compatible? > What is the expression to use? Not entirely sure what you're after (try posting some before and after snippets), but by the sounds of it you don't need a regular expression - strtr() will work for you. Or str_replace(). -- Richard Heyes http://www.phpguru.org

« previous php.general (#277300) next »