ANN: RegularExpressions.jl

A human readable API for regular expressions. Still missing a couple of trickier REGEX features (recursion, conditionals, call-backs), mostly because I don’t understand them (halp!).

16 Likes

I think I’ve been using regex too long - your example looks less readable to me than ^(http(s?):\/\/)?(www\.)+[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,3})+(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$

What is wrong with me?!? :laughing:

But seriously, this looks pretty cool!

3 Likes

I find the rexegg site helpful

1 Like

I believe the dev version now supports all features of PCRE2

1 Like

Nice project! Another website I found very helpful is regex101.com. What I like about it is the syntax highlighting and the interactive testing tools and information they have.

Would be cool if there was a display output in Julia for regex with colored syntax highlighting.

Yes, I use regex101.com all the time to test that my regex’s actually work and to figure out the captures.