I know I should not use regex in HTML. I would like to extract image sources from an HTML file, example below:
It might look like this:
<img src = cid:header width="700" height="93" alt="Logo" />
<img src= cid:header width="700" height="93" alt="Logo" />
<img src =cid:header width="700" height="93" alt="Logo" />
<img src=cid:header width="700" height="93" alt="Logo" />
In each case, I'ld like to get "cid:header" as the result.
Since my regex knowledge is basically zero, I turn to you guys. I need a pattern that accepts a space after "src" or after the "=" character.
src[mightBeSpace]=[mightBeSpace]cid:[mustNotBeSpace]
Thank you!