> How do you escape a ' (apostrophe) within a regular expression, so it does
> not close off the string? Something like
> ... ~ '[0-9.,\']'
> does not seem to work.
> (Pgsql 6.4.2)
>
Seems to work in 6.5:
test=> select * from test where x ~ '[acb\']';
x
-
'
(1 row)
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026