2 ms·
I can't remember where, but there's some version of that regex somewhere that uses variables for interpolation in subsequent regexes. Viewed like that it's rea
by avar 9y ago
I can't remember where, but there's some version of that regex somewhere that uses variables for interpolation in subsequent regexes.
Viewed like that it's really not that complex, most of it is repetition of previously used regex sequences, it's only when fully expanded that it becomes so humongous.
- shakna 9y agoThe pattern is Jeffrey Friedl's, from his book Mastering Regular Expressions. And as clear as the source could be made, I feel the fact that so many people have just copied and pasted it means that any understanding is lost, and they're just praying and hoping, because a regex of that size is actually difficult for them to comprehend.