Reputation: 919
I have a set of urls with the following structure:
https://www.test.com/us/page1
https://www.test.com/us/page2
https://www.test.com/eu/page1
https://www.test.com/eu/page2
https://www.test.com/fr/page1
https://www.test.com/fr/page2
I'm doing as following for the regex:
https:/\/\www.test.com/\(us)|(eu)|(fr)|/\(page1)|(page2)
But it seems not matching those cases. Can anyone explain me what I'm doing wrong with a workable example?
Upvotes: 0
Views: 677
Reputation: 110209
How about:
Note that in your question you have the escapes backwards:
https:/\/\
Should actually be:
https:\/\/
(if you need to escape it, many regex flavors don't have to escape /
)
Upvotes: 1