my $s = "hello there today is sunny"; if ($s =~ /<([^>]*?)>/) { print "match: $1\n"; }