I have a list of URL that need to be matches in a regular expression. I have already tried to make the match but cannot get it to work with a variable product name.
Match: https://www.outwebsite.co.uk/products/product-name
Don't Match: https://www.ourwebsite.co.uk/products/product-name?view=alt
Match: https://www.ourwebsite.co.uk/collections/collection-name/products/product-name
Match: https://mywebsite/products/product-name?utm_source=Facebook&utm_medium=cpm&utm_campaign=mof&rs=facebook2_6125507649009_6125720949209_6134410260209&fbclid=IwAR31D2CHnvar5p1Ce0ZoYaHTJRPwaN9aa2q3dsyDu3hGCLkjKNtti3pDm2I
Match: ourwebsite.co.uk/collections/collection-name/products/product-name
Not Matched: www.google.com
Not Matched: mywebsite.co.uk
Not match: mywebsite.co.uk/home/