[FIX] Highlight RegExp needs to be escaped.

Following https://github.com/angular-ui/ui-utils/pull/83
I suggest to just add a try-catch to secure the regex.
I added two tests with yours. Feel free to add more.