Believe it or not this is a ECMA-262 edition 5.1 -compatible Regular Expression parser and evaluator, written in Ruby.