Don't forget to replace "\" character with "\\" when working with regular expressions in JavaScript and use new RegExp( "expression" ). Otherwise JS will assume you are trying to declare special symbols (such as "\n" for the new line). From time to time I forget about this, and then I need to spend extra time to figure this out all over again. Today is one of those days.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5