OT: RegEx Help

  • Thread starter Thread starter Bob Johnson
  • Start date Start date
B

Bob Johnson

I need a RegEx expresson that validates a string containing 6 characters
according to this criterion:
First character must be alpha (A-Z) upper case only.
Next 5 characters must each be an integer from 0 to 9.

These would pass: G43879, A00009, K98765
These would fail: g43879, 89873E, ABCDEF

I'd sure appreciate some help on this.

Thanks!
 
Bob said:
I need a RegEx expresson that validates a string containing 6 characters
according to this criterion:
First character must be alpha (A-Z) upper case only.
Next 5 characters must each be an integer from 0 to 9.

These would pass: G43879, A00009, K98765
These would fail: g43879, 89873E, ABCDEF

[A-Z]\d{5}
 
Back
Top