Perl: the Markov chain saw | |
PerlMonks |
DBD-SQLite Regexpby welle (Beadle) |
on Nov 26, 2012 at 17:41 UTC ( [id://1005725]=perlquestion: print w/replies, xml ) | Need Help?? |
welle has asked for the wisdom of the Perl Monks concerning the following question: Hello I am trying to extract from a column of a SQLITE-DB (containing text sentences) sentences that contain a string ($query). I normally use:
which is working pretty good (every sentence containing $query somewhere is extracted). What I'd like to implement is a matching only for entire words. I thought the following would do the game (note the white spaces between and after $query):
I get rid only of sentence4 (no white spaces left and right of "tag" What I am doing wrong?"
Back to
Seekers of Perl Wisdom
|
|