Re: Regular Expression help need

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux