Avatar of jecommera
jecommera
Flag for United Kingdom of Great Britain and Northern Ireland asked on

need regex for the following

Hi

Can you please advise regex for the following condition

AN NAA

ANA NAA

ANN NAA

AAN NAA

AANN NAA

AANA NAA

(N = Numeric, A = Alpha)
Regular Expressions

Avatar of undefined
Last Comment
Habib Pourfard

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ozo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Habib Pourfard

This regex matches both lower and upper cases:
[a-zA-Z]?[a-zA-Z]\d[a-zA-Z\d]? \d[a-zA-Z]{2}

Open in new window

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck