I am trying to make a regex to identify relative src paths using PHP. To do this my idea was to use a look ahead (?= then not ^ and a subexpression (http) but this doesn't work. It works for a single charater but the ^ doesn't work with a subexpression. Is there an && operator or something?
<img.*?src=[\'\"]\(?=^(http))
I need it to take the entire http or else imgs with starting with h, t or p will be prejudiced against. Any suggestions? Is this task too big for regex?