Test regular expressions in javascript.