Masem has asked for the wisdom of the Perl Monks concerning the following question:
I've tried to use (as the regexp expression) '(^|\;)?(\;|$)', but the DBI::Mysql handler doesn't seem to recognize that ? as a placeholder (and complains that it's expecting 0 inputs when I give it one). I've also tried using "REGEXP ?", then passing the regexp expression with the desired field filled in, but the quoting that DBI does chews up the expression beyond usability.
I can do all the usual checks on the word before putting it into a DBI SQL expression that DOESN'T use placeholders, but I'd like to know if there's any possibilities for this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Placeholders and REGEXP
by yakko (Friar) on Feb 15, 2001 at 06:40 UTC | |
by Masem (Monsignor) on Feb 15, 2001 at 09:39 UTC | |
|
Re: DBI Placeholders and REGEXP
by $code or die (Deacon) on Feb 15, 2001 at 05:45 UTC | |
by dws (Chancellor) on Feb 15, 2001 at 05:56 UTC | |
by Masem (Monsignor) on Feb 15, 2001 at 06:27 UTC | |
by dws (Chancellor) on Feb 15, 2001 at 06:42 UTC |