$string="a_sample_string"; #... my $disposable = $string; # put it in a disposable variable $disposable =~ s/_/ /g; # substitution on that instead $disposable =~ /^(.*)$/; # then put it in $1
One world, one people
In reply to Re: a small regexp question
by anonymized user 468275
in thread a small regexp question
by newroz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |