I need some help with Regex expression, as it s very new to me.
I have a URL which consists of Item Number or Product ID.
What I am looking to achieve is that could trim the URL part and extra part after a symbol of %.
Here is how the url looks like.
OR
https://www.test.com/test-test/test/test-demo-demo-demo-demo.html?piid=12345678
So from the above URL I am looking to trim https://www.test.com/test-test/test/test-demo-demo-demo-demo.html?piid= and this part %2C24753325#seemoreoptions-b0uksl51j4m
So, this should give me only 12345678.
I have use the following Regex
(.*)(\=) Replace with $2
Above Regex does trim the url first part but does not the part after % symbol.
I tried to get solution on
So for the both the above URL examples, I should get the result as
12345678
Thank you in advance