in reply to Re: regex needed to remove parts of SQL
in thread regex needed to remove parts of SQL
This works, except I don't understan why (?: .... ) is not working (I don't want to replace the word SELECT)$sql =~ s/(?:SELECT)\s*[^,]*?\s+as/SELECT/gi ; $sql =~ s/,\s*[^,]*?\s+as/,/gi ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex needed to remove parts of SQL
by mayaTheCat (Scribe) on Sep 12, 2007 at 11:15 UTC | |
by jeanluca (Deacon) on Sep 12, 2007 at 12:08 UTC |