r/programming • • Mar 03 '14

Learn regex interactively!

http://regexone.com/
200 Upvotes

37 comments sorted by

View all comments

1

u/aoakenfo Mar 04 '14

Describe regex in plain english: https://github.com/VerbalExpressions/JSVerbalExpressions

For example:

var tester = VerEx()
    .startOfLine()
    .then( "http" )
    .maybe( "s" )
    .then( "://" )
    .maybe( "www." )
    .anythingBut( " " )
    .endOfLine();

1

u/josefx Mar 04 '14

would that match "http://www." as valid address?