[jQuery] Re: [validate] Use Regex

2008-06-16 Thread Isaak Malik
Try this out: if ( !/[a-z0-9\-_]/i.test( $("[EMAIL PROTECTED]'firstname']").val() ) ) alert('Wrong!'); On 6/16/08, shapper <[EMAIL PROTECTED]> wrote: > > > Hello, > > How can I check the value inserted in an Input using a RegEx > expression? > > Thanks, > Miguel > -- Isaak Malik Web Developer

[jQuery] Re: [validate] Use Regex

2008-06-16 Thread Jörn Zaefferer
http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage Jörn On Mon, Jun 16, 2008 at 12:11 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > How can I check the value inserted in an Input using a RegEx > expression? > > Thanks, > Miguel >