zdzieblo has asked for the wisdom of the Perl Monks concerning the following question:
any tips how to quote regular expression characters in queries like this:
my $sql = "SELECT a FROM table WHERE (a ~* (E\'.*\' || ?))";
update, I mean quoting them in the place holder of course ;-)
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: postgres reg expression quoting
by moritz (Cardinal) on Apr 01, 2009 at 13:21 UTC | |
|
Re: postgres reg expression quoting
by BrowserUk (Patriarch) on Apr 01, 2009 at 13:27 UTC | |
by zdzieblo (Acolyte) on Apr 01, 2009 at 14:00 UTC | |
by BrowserUk (Patriarch) on Apr 01, 2009 at 14:15 UTC | |
by zdzieblo (Acolyte) on Apr 01, 2009 at 14:44 UTC | |
by ikegami (Patriarch) on Apr 01, 2009 at 14:31 UTC | |
by zdzieblo (Acolyte) on Apr 01, 2009 at 14:40 UTC | |
by ikegami (Patriarch) on Apr 01, 2009 at 15:07 UTC | |
|