are you using two single quotes when you want a double quote? also
you should probably be using str_replace for this since there's no
regular expressions here.
On Fri, 02 Nov 2001 22:26:07 +0100, Ben Edwards wrote:
>Have a regular expression which replaces ' with '' (used to insert '
>into db):
>
Have a regular expression which replaces ' with '' (used to insert ' into db):
preg_replace("/\'/", "''", $text );
This works great on the UNIX production machine but not on windows
development environment. Actually replaces ' with \'' not ''.
Before I write a function that loops thought the
2 matches
Mail list logo