Ummm... no. The '/m' modifier only effects the matching of '^' and '$' (when used to match beginning-of-line, end-of-line). It allows these two symbols to match newlines within the string.
The regex m/\(([^)]*)\)/g, will match across new lines. More specifically, the regex m/[^)]/ will match a newline quite happily. if ( "\n" =~ /[^)]/ ) {print "Yes\n"} Yes
In reply to Re: Re: Regex Help - Correct use of /m
by dvergin
in thread Regex Help
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |