[a-zA-Z]{2}\d{6}
[a-zA-Z]{2}
means two letters
\d{6}
means 6 digits
If you want only uppercase letters, then:
[A-Z]{2}\d{6}
More Related Contents:
- How can I match “anything up until this sequence of characters” in a regular expression?
- bash regex with quotes?
- Regular expression to match any character being repeated more than 10 times
- Parsing scientific notation sensibly?
- Regex Last occurrence?
- Regular expression to match string starting with a specific word
- How to wisely combine shingles and edgeNgram to provide flexible full text search?
- Regular expression negative lookahead
- Why is a character class faster than alternation?
- Mail::RFC822::Address Regex
- How to match, but not capture, part of a regex?
- Regular Expressions- Match Anything
- RegEx to match full string
- MongoDB, performance of query by regular expression on indexed fields
- Find numbers after specific text in a string with RegEx
- Regex for time in hh:mm am/pm format
- Email validation using regular expression in JSF 2 / PrimeFaces
- Grammatical inference of regular expressions for given finite list of representative strings?
- Regex get domain name from email
- Regex empty string or email
- Using sed and grep/egrep to search and replace
- Regular Expression to exclude set of Keywords
- Remove square brackets from a string vector
- regex: find one-digit number
- Regular Expression – How to find a match within a match?
- Redirect all traffic to root of another domain
- ignoring changes matching a string in git diff
- ElasticSearch and Regex queries
- How to validate email id in angularJs using ng-pattern
- Regex allow digits and a single dot