in reply to Regexp in mysqldump
sub space_subst { my $s = shift; $s =~ s/ /_/g; return $s; } s/`(\w+\s+[\w\s]+)`/space_subst($1)/eg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp in mysqldump
by AnomalousMonk (Archbishop) on Apr 15, 2010 at 22:39 UTC | |
|
Re^2: Regexp in mysqldump
by NetWallah (Canon) on Apr 15, 2010 at 22:44 UTC | |
by brozzis (Sexton) on Apr 16, 2010 at 14:57 UTC | |
by JavaFan (Canon) on Apr 16, 2010 at 15:57 UTC |