in reply to Re^3: reg expression question
in thread reg expression question
Within a regex, the special character ^ means “match at the start of the line”
Except when it means "match the beginning of the string" which is what yours means
Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching - Always use the /m modifier with regular expressions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: reg expression question
by Athanasius (Archbishop) on Jan 29, 2015 at 08:42 UTC | |
by AnomalousMonk (Archbishop) on Jan 29, 2015 at 11:14 UTC | |
by healingtao (Novice) on Jan 29, 2015 at 16:04 UTC | |
by Athanasius (Archbishop) on Jan 29, 2015 at 16:53 UTC | |
by healingtao (Novice) on Jan 29, 2015 at 18:13 UTC |