Regex to check entry -


I'm terrible at regex and how to know how much value 1 or 2 is in a selection, No more

There are three options and only 2 are valid.

It can be used as validation regex for jQuery validation.

If you want to match the literal string "1" and "2", < / P>

  / ^ [12] $ /   

will suffice.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -