jQuery is a set of JavaScript functions, right? So you could use JavaScript's regular expression support to validate the string. You can put this in a jQuery callback if you like, too, since those just take anonymously-declared function bodies and the functions are still JavaScript.
Link: [http://www.regular-expressions.info/javascript.html][1] [1]: http://www.regular-expressions.info/javascript.htmlhttp://www.regular-expressions.info/javascript.html