Regular Expression to find values of a certain lenght

I just need a regular expression that will find values that are not 12 bytes in length.  

For example:

123                           --->  Error, less than 12
123456789012      ---->  Valid
1234567890123   -----> Error, greater than 12
tmajor99Asked:
Who is Participating?
 
Patrick MatthewsConnect With a Mentor Commented:
Assuming you mean "the entire input is 12 consecutive digits, no more, no less":

^\d{12}$

If that pattern returns a match, you're good; if not, then not.
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.