Let's say I have a url like this:
url = http://www.example.com/listing.html?pid=1234&pid=1235&pid=1236
How can extract only the value after 'pid=' using regex without the text itself by using the regex.
Here how my regex looks like now:
url.match(/pid=(\w+)/g)
Which is giving following output:
["pid=1234", "pid=1235", "pid=1236"]
But I want to get it like this:
["1234", "1235", "1236"]
Please correct me if I am doing some thing wrong in here.