Thread: Jquery problem
View Single Post
Old 08-24-2012, 08:20 AM   PM User | #5
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
You are using the backslash inside a javascript string to handle regular expression escaping, but it is already used for javascript character escaping. So you will have to replace every \ backslash inside the regular expression with a double backslash \\ which will escape the backslash to be used for the regex.
devnull69 is offline   Reply With Quote