Timeline for Regex / Regular Expression for finding duplicate URL directories in Screaming Frog SEO Spider
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 11, 2023 at 7:43 | comment | added | Robin | I did't received any notification about your answer. Unfortunately I first saw your answer after the page reloaded. So anyway thank you for your contribution. For my case my solution works well even if you're right that is overly complex and yours is way simpler. I tried out both solution against different possible cases like that one example.com/at-en/def/xxx/def/xxx/yyy/yyy/xyzabc/xyzabc even if it is not so likely that the case will occur. Your Regex does not highlight every duplicate directory which on the other hand doesn't matter because this URL is been found anyway | |
Oct 10, 2023 at 18:48 | comment | added | MrWhite |
Did you read/try the "simpler" solution presented in my answer? This solution (from Chat-GPT) does not actually work for the first 2 examples you posted in your question, without the language prefix on the URL-path (ie. /abc/def/abc/ and /xxx/yyy/xxx/ ). It's also arguably over complex for this use case. It's also a bit odd that it uses a non-capturing subpattern for the 4th group (where it's not needed) but omits this in the first two groups, where it would be beneficial (although the first does not need to be a "group" at all).
|
|
S Oct 10, 2023 at 15:29 | review | First answers | |||
Oct 10, 2023 at 18:06 | |||||
S Oct 10, 2023 at 15:29 | history | answered | Robin | CC BY-SA 4.0 |