Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How does one search for words not in quotes? Take, for instance,
SELECT "SELECT * FROM table1 WHERE ..." SQL FROM table2 WHERE ...
The regex /(\bFROM\b.*?\bWHERE\b)/ will capture "FROM table1 WHERE" from within the quote and not the unquoted "FROM table2 WHERE".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: REGEX search for words not in quotes.
by Corion (Patriarch) on Apr 08, 2010 at 18:13 UTC | |
by Anonymous Monk on Apr 08, 2010 at 22:15 UTC | |
Re: REGEX search for words not in quotes.
by almut (Canon) on Apr 08, 2010 at 18:26 UTC | |
by Anonymous Monk on Apr 08, 2010 at 22:29 UTC | |
Re: REGEX search for words not in quotes.
by rmcgowan (Sexton) on Apr 08, 2010 at 19:31 UTC | |
Re: REGEX search for words not in quotes.
by BrowserUk (Patriarch) on Apr 08, 2010 at 18:19 UTC | |
by Anonymous Monk on Apr 08, 2010 at 22:25 UTC | |
by BrowserUk (Patriarch) on Apr 08, 2010 at 22:41 UTC | |
by Anonymous Monk on Apr 09, 2010 at 12:44 UTC |