Both the regex you have created are seems to be working perfectly and it does identifying the unique values with in my source urls.

But can you please look into my issue once again as my desired result is to retrieve theses unique codes from the url i.e, I need to replace everything other than the unique code which is in this case “mnq123”.