in reply to Re: Regex help reqd
in thread Regex help reqd

As an aisle, how will "</section>" be tested?

Replies are listed 'Best First'.
Re^3: Regex help reqd
by Anonymous Monk on Jun 27, 2005 at 07:20 UTC
    This will do the trick

    if($string=~ m/<\/section>/) { print "Here :: $& \n"; } else { print "regex failed"; }