in reply to Re: Faster regex to split a string into runs of similar characters?
in thread Faster regex to split a string into runs of similar characters?
If you want to match all 256 byte values, you'll need the /s modifier.
Yes. /s not /m; I always mix those two up.
why are you using look-ahead assertions? Isn't /((.)\2+)/g stricly identical to your regex?
No. That won't match a single character 'run'.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Faster regex to split a string into runs of similar characters?
by Eily (Monsignor) on Nov 21, 2016 at 10:50 UTC | |
by BrowserUk (Patriarch) on Nov 21, 2016 at 11:31 UTC |