Closed GoogleCodeExporter closed 9 years ago
The one_line setting only applies to POSIX mode because Perl syntax
already provides a way to control it: insert (?m) at the beginning of
the regexp. For more details see http://perldoc.perl.org/perlre.html#Modifiers
Original comment by rsc@golang.org
on 4 Aug 2010 at 5:31
Guess I'll just keep this in my fork then; it seems silly to need an allocation
to add (?m) to the start of the string I'm given. Thanks for the reply anyway.
Original comment by dgl...@gmail.com
on 5 Aug 2010 at 8:10
There is one downside of requiring "(?m)" as a work-around. I maintain a
program that takes regular expressions from users and always has to run in
multiline mode. If I accomplish this by prepending "(?m)" to the regular
expression, but they have a syntax error, then the "(?m)" will appear in the
error message, which would be confusing to the user.
Would you accept a patch that added a "multi_line" option to the Options
structure that overrode the OneLine bit after LikePerl was applied?
Original comment by dre...@gmail.com
on 11 Nov 2010 at 6:40
Original issue reported on code.google.com by
dgl...@gmail.com
on 4 Aug 2010 at 1:03