Adding DOTALL modifier to ECMAScript regex standards
rtm at gol.com
Wed Aug 10 14:40:38 UTC 2016
If it's any consolation there is the more compact hack of `[^]`, which I
**think** is supposed to work everywhere.
On Wed, Aug 10, 2016 at 3:02 PM, Jake Reynolds <jreynoldsdev at gmail.com>
>>> In ECMAScript the only current way to make a match like that work is to
>>> use [\d\D] which will match everything including newlines, given below.
>>> *Current workaround regex: */he[\d\D]?llo/
>>> The *s* modifier is the standard in most major languages except
>>> The proposed regex is below:
>>> *Proposed new regex: */he[.*]?llo/s
>>> *Example search string: *he
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss