If so, how about:$a = "blah bla blah"; $b = $a; $b =~ s/blah (bla) blah/$1/;
$a = "blah bla blah"; ($b) = $a =~ /^\S+\s+(\S+)\s+\S+$/;
In reply to Re: simple replace
by csotzing
in thread simple replace
by markcsmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |