A simple Javascript class for dealing with Regular Expressions