JavaScript Regular Expression Parser.