[Phpwm] help with function
greg.jones at gmail.com
Fri Mar 23 07:20:08 GMT 2007
On Fri, 23 Mar 2007 02:13:50 -0000, Phil Beynon
<phil at infolinkelectronics.co.uk> wrote:
> It works just about perfectly, and I've been using for some time.
> Except last night I searched on '.' and discovered if that's done it
> replaces every char in the data variable with the same number of .s - all
> nicely highlighted, and I cannot for the life of me see why.
You probably want to run the search-term through preg_quote to escape the
. (and any other RE characters): http://uk2.php.net/preg-quote
More information about the Phpwm