问题
Hi Guys I need a regex that checks if the string starts with two upper-case followed by numbers:
Example: DE123456789
Thanx a lot of.
回答1:
Literally:
^[A-Z]{2}\d+
^- start of the string[A-Z]- an upper case letter{2}- two of those\d- a digit+- one or more of those
来源:https://stackoverflow.com/questions/32038690/regex-that-checks-if-the-string-starts-with-two-upper-case-followed-by-numbers