Contribute Media
A thank you to everyone who makes this possible: Read More

Understand RegEx using deep learning


“Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems.” - Jamie Zawinski

I was staring to my screen and there was this — ^(http|https|ftp):[/]{2}([a-zA-Z0-9-.]+.[a-zA-Z]{2,4})(:[0-9]+)?/?([a-zA-Z0-9-._?,'/\+&%$#=~]*) I could understand that it is, may be, talking about some kind of URL pattern. But what the meaning of it? No answer. And Stackoverflow was no help.

This when I started my project to automatically generate the intent of any RegEx expression given the expression itself. Without any prior domain knowledge. I will walk you through the data I used, how I built my models, and the outcomes achieved. I will also provide a notebook so you’ll be able to play with it.


Improve this page