my $s = "hello there <here I am> today is sunny"; if ($s =~ /<([^>]*?)>/) { print "match: $1\n"; }
--dda
In reply to Re: Retrieving text between 2 strings/chars...
by dda
in thread Retrieving text between 2 strings/chars...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |