Regex URL Matches

 

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/




Cross Platform Programming

Project Class: Micro (Under 500rb)
Published Budget: Rp 100,000
Finish Days: 1
Published Date: 22/07/2019 15:41:06 WIB
Start Date:
Project Status: No Action
Accepted Worker:
Accepted Budget: Rp 0
Project Ending:
Finish Date:

Project Owner

SuburbMedia
    
0.00/10.00
0 Point
No Ranking

Accepted Worker

Bid masih terbuka.

Place New Bid

  User Bids

verboden_software
    
10.00/10.00

plonknimbuzz
    
9.96/10.00

frnhsn
    
9.67/10.00

interrupt
    
9.33/10.00

Recommended Workers

Iswanto

18,857 points
392 projects
    
9.73/10.00

steven.comptia

23,955 points
645 projects
    
9.96/10.00

imzers

11,293 points
55 projects
    
9.87/10.00

idlamalif

10,815 points
142 projects
    
9.89/10.00

mas.adi

9,490 points
29 projects
    
9.83/10.00

Recommended Services

Pembuatan bot line

Rp 1,500,000
6 sales
    
10.00/10.00

Script Full Code Mutasi Bank

Rp 4,500,000
3 sales
    
9.67/10.00

Aplikasi Jasa Servis dan panggil Teknisi

Rp 3,800,000
2 sales
    
10.00/10.00

Pembuatan template website & Slicing PSD to HTML

Rp 300,000
9 sales
    
10.00/10.00

Open Projects

Revisi website GIS

Rp 200,000Owner: dianlpg19
Deadline: 4 days

Pembuatan Website Toko Online

Rp 2,000,000Owner: CHAIRULSALEH
Deadline: 7 days

web infografik

Open to SuggestionsOwner: wasisprojects
Deadline: 45 days

Pembuatan Web Aplikasi e-Commerce

Rp 3,000,000Owner: agung.rakhmanda
Deadline: 30 days

buatkan web event

Open to SuggestionsOwner: jakartabbm1
Deadline: 7 days