Link to home
Start Free TrialLog in
Avatar of Skycapt
SkycaptFlag for United Kingdom of Great Britain and Northern Ireland

asked on

regular expression

Hello

I need to search for P123/ABC using a regular expression?

Thanks for your help
Avatar of cubeeq
cubeeq
Flag of Czechia image

Could you be more specific? You can find this exact expression when you just call it: P123/ABC.
Avatar of Skycapt

ASKER

Oh sorry,

I have a list of products P123 to P500 in number order but 5 or 6 of them have the extended code P123/ABC the numbers and letters may vary so you may get P234/DEF they also may change from day to day so I cant just isolate individual codes.

Hope that helps
ASKER CERTIFIED SOLUTION
Avatar of cubeeq
cubeeq
Flag of Czechia 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
Avatar of Skycapt

ASKER

Hi, thanks for your help, here's my final code

'^[P][0-9]{3}(/[A-Z]{3})?$'