Reputation: 15
I am trying to write regex to check domain and path after it for some context value path. I wrote this regex which works. Is there any simple version for this without using or?
^/(creditcards|creditcards/.*)?$
To match:
/
/creditcards
/creditcards/something
Upvotes: 0
Views: 21