compile regex via RegExp constructor since jareds syntax higlighting is fucked up