Improve parsing of ngOptions.

* Use regex from the implementation of the select directive in ng.