I am trying to parse some ids out of a url and my original solution pulls the first id (my assumption that there would be only one). But now, I have come to learn that there could be more, so some changes to my original solution are needed, but I cannot seem to get it right.
Here are my basic requirements:
Return all numbers between '/' or '=' and '&' or '/' or end of string.
My original requirements:
Return numbers found between '/' or '=' and '&'
Here is my original solution:
([^\/|=]*)(\&)
Here is an example url that I have been using:
https://www.website.com/blah?blah_id=1234567890&id=0987654321
I want to return 1234567890 and 0987654321
I have tried several solutions, none of which have worked for me, so please do not mark as a duplicate.