ANN: RegularExpressions.jl

#1

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
#2

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
#3

I find the rexegg site helpful
https://www.rexegg.com/regex-conditionals.html
https://www.rexegg.com/regex-recursion.html
https://www.rexegg.com/pcre-callouts.html

1 Like
#4

I believe the dev version now supports all features of PCRE2

1 Like
#5

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.

#6

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