![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Faster regex to split a string into runs of similar characters?by BrowserUk (Patriarch) |
on Nov 21, 2016 at 10:43 UTC ( #1176236=note: print w/replies, xml ) | Need Help?? |
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'. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|