JavaScript

Google

Tip with RegEx in Javascript

Submitted by Ravindra on Tue, 2007-03-13 01:06.

In your regular expression dont use ‘|’ the vertical bar character. i spent nearly 5 hours debugging my code. in my pattern i had the ‘|’ character as the string contains it as a delimiter. the regex always returned true

permalink
Syndicate content