in reply to regex needed to remove parts of SQL
Oguz$sql =~ s/(select|,)\s*[^,]*?\s+as/$1/gi ;
---------------------------------
life is ...
$mutation = sub { $_[0] =~ s/(.)/rand()<0.1?1-$1:$1/ge };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex needed to remove parts of SQL
by jeanluca (Deacon) on Sep 12, 2007 at 10:40 UTC | |
by mayaTheCat (Scribe) on Sep 12, 2007 at 11:15 UTC | |
by jeanluca (Deacon) on Sep 12, 2007 at 12:08 UTC |