I have two links where i need the partNumber,the problem i am facing is in onecase it is at the end of the link and in another case it is after the query partNumber=
https://www.opsm.com.au/womens-sunglasses/ov5514su-kasdan/827934482050
.*(?<=partNumber=)([\w-]+)Output : ac-airoptix-colors-2
this is the regex i have tried but this one is working for first link. how do i put a OR condition that take the last number present in the second link