my $string = '<School type="content" name="Schoolpage"><section name=" +Graduation"><grade name="Iyear"><description>'; if($string=~ m/<section [^>]+>/) { print "Here :: $& \n"; } else { print "regex failed"; }
Output:
Here :: <section name="Graduation">
In reply to Re: Regex help reqd
by gopalr
in thread Regex help reqd
by Ananda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |