"be consistent" | |
PerlMonks |
Re: regex with /s modifier does not provide the expected resultby choroba (Cardinal) |
on Aug 31, 2016 at 14:10 UTC ( [id://1170898]=note: print w/replies, xml ) | Need Help?? |
It works for me. Are you sure you send both the lines to the subroutine? If so, consider renaming the $line variable, as it can contain multiple lines. Also, are you sure the class name should contain any whitespace following it? I'd move the \s+? outside the capture group.
In Section
Seekers of Perl Wisdom
|
|