in reply to Regex help reqd
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">
|
|---|