my $s = "<foo>stuff</foo>"; #$s =~ s/<foo>(.*?)<\/foo>/<bar>$1<\/bar>/; $s =~ s#<foo>(.*?)</foo>#<bar>$1</bar>#; print $s;
In reply to Re: Matching a pattern in Regex
by davidrw
in thread Matching a pattern in Regex
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |