Link to home
Start Free TrialLog in
Avatar of jecommera
jecommeraFlag 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)
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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