REGEX-Escape from: ^(?!/gp/r\.html\?).*/(?:dp|product|gp/aw/d|gp/offer-listing|d(?:/.+?)?)/([a-zA...

Your Input:
Result, the escaped string:
\^\(\?\!\/gp\/r\\\.html\\\?\)\.\*\/\(\?\:dp\|product\|gp\/aw\/d\|gp\/offer\-listing\|d\(\?\:\/\.\+\?\)\?\)\/\(\[a\-zA\-Z0\-9\]\{10,\}\)\(\?\:\/\|\\\?\|#\|\$\)

What must the escaping look like for:
^(?!/gp/r\.html\?).*/(?:dp|product|gp/aw/d|gp/offer-listing|d(?:/.+?)?)/([a-zA-Z0-9]{10,})(?:/|\?|#|$)

The excaped text for use in a regex is:
\^\(\?\!\/gp\/r\\\.html\\\?\)\.\*\/\(\?\:dp\|product\|gp\/aw\/d\|gp\/offer\-listing\|d\(\?\:\/\.\+\?\)\?\)\/\(\[a\-zA\-Z0\-9\]\{10,\}\)\(\?\:\/\|\\\?\|#\|\$\)


Ads