in reply to Re: Re: regular expressions: from general to Perl to SQL
in thread regular expressions: from general to Perl to SQL
or something.my %rx_wild_for = ( '%' => '.*', '_' => '.' ); $profane = s/[%_]/$rx_wild_for{$1}/g;
Makeshifts last the longest.
|
|---|