4 ms·
Do it! You will find that it's very easy, but the result will either be extermely verbose or just like regex. Since most regexes (at least for me) are meant as
by frabert 7y ago
Do it! You will find that it's very easy, but the result will either be extermely verbose or just like regex. Since most regexes (at least for me) are meant as one-time-use, the extra verboseness has no added benefit. If you have complex needs, you should probably be using something other that regex, anyways.
- thanatos_dem 7y agoExtremely verbose is right. Here's one such approach in java that I found last year - https://github.com/sgreben/regex-builder https://github.com/sgreben/regex-builder. Yeah, regex can be a bit clunky at times and has a steeper learning curve, but they're pretty industry standard at this point, and portable across languages with a few caveats.