A JavaScript implementation of RegExp for debugging purpose.