Link to home
Start Free TrialLog in
Avatar of DevSupport
DevSupport

asked on

regex to restrict strings ending with something

I would like to know how to write a regex which does not allow strings ending with dev, qa, prd, staging and the string should be only lowercase.

for example

abcqa not allowed
xyzdev not allowed
pqr allowed
abcdef - allowed
mnxpkdev - not allowed
lmnopstaging - not allowed
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand 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 DevSupport
DevSupport

ASKER

Thank You so much!