The question is simple, I need to get the value of all attributes whose value starts withhttp://example.com/api/v3?
. For example, if a page contains
<iframe src="http://example.com/api/v3?download=example%2Forg">
<meta twitter="http://example.com/api/v3?return_to=%2F">
Then I should get an array/list with 2 member :http://example.com/api/v3?return_to=%2F
andhttp://example.com/api/v3?download=example%2Forg
(the order doesn’t matter).
I don’t want the elements, just the attribute’s value.
Basically I need the regex that returns strings starting with http://example.com/api/v3?
and ending with a space.