Adding DOTALL modifier to ECMAScript regex standards

Jake Reynolds jreynoldsdev at gmail.com
Wed Aug 10 15:04:39 UTC 2016


I agree, I doubt functionality in IE8- will matter, but I was thinking it
would be nice to align the regex modifiers with other languages for the
future.

*Java:*
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#DOTALL
*Python:* https://docs.python.org/2/library/re.html#re.DOTALL
*C#:*
https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(v=vs.110).aspx

There is a variety of namings for this across the languages
(DOTALL/SINGELINE) but I believe the most often used modifier to be
`/.../s` which would be a nice addition to have.

On Wed, Aug 10, 2016 at 9:57 AM, Mathias Bynens <mathiasb at opera.com> wrote:

> On Wed, Aug 10, 2016 at 4:40 PM, Bob Myers <rtm at gol.com> wrote:
> > If it's any consolation there is the more compact hack of `[^]`, which I
> > **think** is supposed to work everywhere.
>
> That doesn’t work in IE < 9, but that shouldn’t matter in 2016.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160810/a2219588/attachment.html>


More information about the es-discuss mailing list