Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-15 Thread Jake Reynolds
> Formal proposal (incl. proposed spec changes) for this feature: https://github.com/mathiasbynens/es-regexp-singleline-flag Very well written, thank you for writing that up. I've not been part of this process before so I'm not sure how it works, but if there is anything you need/want from me

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-15 Thread Mathias Bynens
> On 10 Aug 2016, at 16:02, Jake Reynolds wrote: > > I brought up the topic of adding the DOTALL modifier to the Chrome V8 Engine > here and was directed to es-discuss. I was curious about the practicality > and the want for adding a DOTALL modifier to the ECMAScript

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Jake Reynolds
My response bounced back to me, not sure if it went through. 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/

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Jake Reynolds
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:*

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Mathias Bynens
On Wed, Aug 10, 2016 at 4:40 PM, Bob Myers 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. ___

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Bob Myers
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 >> wrote: >> >>> In ECMAScript the only current way to make a match like that work is to >>> use [\d\D] which

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Jake Reynolds
Correct, sorry about that. I should have verified in a regexr before typing up the examples. On Wed, Aug 10, 2016 at 9:12 AM, Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: > Just to double check, your `/he[\d\D]?llo/` should be `/he[\d\D]*?llo/`, > right? > Otherwise it's not the same

Re: Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Andrea Giammarchi
Just to double check, your `/he[\d\D]?llo/` should be `/he[\d\D]*?llo/`, right? Otherwise it's not the same as `/he[.*]?llo/` On Wed, Aug 10, 2016 at 3:02 PM, Jake Reynolds wrote: > Hello, > > I brought up the topic of adding the DOTALL modifier to the Chrome V8 >

Adding DOTALL modifier to ECMAScript regex standards

2016-08-10 Thread Jake Reynolds
Hello, I brought up the topic of adding the DOTALL modifier to the Chrome V8 Engine here and was directed to es-discuss. I was curious about the practicality and the want for adding a DOTALL modifier to the