I have a number of links that look like:
<a href="http://url.com/?foo=bar&p=20" title="foo">Foo</a>
<a href="http://url2.com/?foo=bar&p=30" title="foo">Foo</a>
I'm trying to extract the parameter p from each href found. So in this case I have an end result array as array (20, 30).
What would be a good regex for this? Thanks.
href="[^ "]+\&p=([^"]+)"work?