08/13/13 16:30:30

VerbalExpressions: Meaningful Regular Expressions

“VerbalExpressions is a JavaScript library that helps to construct difficult regular expressions.”

Basically, to test for a valid URL, this is the code required:

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

This library is based on JavaScript but is currently being ported to many more languages. New is Objective-C, this wasn’t here on Friday.