In jQuery, is there a function/plugin which I can use to match a given regular expression in a string?
For example, in an email input box, I get an email address, and want to see if it is in the correct format. What jQuery function should I use to see if my validating regular expression matches the input?
I’ve googled for a solution, but I haven’t been able to find anything.
I believe this does it:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
It’s got built-in patterns for stuff like URLs and e-mail addresses, and I think you can have it use your own as well.