1) I have to trap URLs with a single line. 2) Several URLs are of the format: /here-is-url For instance /here-is-url1 /here-is-url2 /here-is-url3 I do not want to trap those URLs 3) Several other URLs are of the format: /here-is-subfolder1/here-is-subfolder-url1-in-subfolder1 /here-is-subfolder1/here-is-subfolder-url2-in-subfolder1 /here-is-subfolder2/here-is-subfolder-url1-in-subfolder2 /here-is-subfolder3/here-is-subfolder-url1-in-subfolder3 /here-is-subfolder3/here-is-subfolder-url2-in-subfolder3 These are the URLs I need to trap.
Asked
Active
Viewed 34 times
0
-
1Try `^folder/?$` – Wiktor Stribiżew Apr 28 '17 at 16:51
-
Do you want to trap `/folder/file1.html`, for example? – Pharaoh Apr 28 '17 at 21:07
-
More details: There are hundreds of different URLs of format: /specific-url. There are only dozens that have /folder/specific-url. I must be able to write the trap in a single line. So ^folder/?$ will capture every URL at that level whereas I do not want the URLs that do not have a specific url in the folder. Example: hereismydomain.com/here-is-url1 is not a url I want to trap. But hereismydomain.com/folder1/here-is-subfolder-url1 I do want to trap. – Marston Gould May 05 '17 at 18:33