4 ms·
OK then. But look at state of the art solutions I mentioned ;-) Perl5's R::Grammars is doing it the same way you do — it generates one-big-scary regex. But thi
by lelf 13y ago
OK then. But look at state of the art solutions I mentioned ;-)
Perl5's R::Grammars is doing it the same way you do — it generates one-big-scary regex. But this lib is nowhere close to what it can do.
For idea: it will provide fully parsed struct like {proto: 'http', domain: { all: 'www.exampe.com', subdomains: ['www','example'], tld: 'ord', ... }
- krainboltgreene 13y agoYou can do this with regex captures.
- lelf 13y agoIt's not $1="this", $2="that", it's a tree. So, no, you cannot. And there're many more cool things you cannot