Regex to return all attributes of a web page that starts by a specific value
问题 The question is simple, I need to get the value of all attributes whose value starts with http://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 and http://example.com/api/v3?download=example%2Forg (the order doesn’t matter) . I don’t want the elements, just the attribute’s value.