Welcome! Log In Create A New Profile

Advanced

Regular Expression in Edit Fields

Posted by Sebastian Arnold 
Sebastian Arnold
Regular Expression in Edit Fields
November 14, 2011 10:08PM
I know that there is MatchRegularExpression(). It checks a string if it matches a RegEx. But I wan't to have a RegEx as an input mask. So it stops the user entering false data while he is typing.

Just imagine the following input:

"123-456" //valid
"123/456" //valid
"123.456" //false
"1-456" //valid

Sebastian
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: