Regex to get src of iframe element

This can be achieved using

(?<=src=").*?(?=[\?"])

See working example on Regex101

Explanation

  1. (?<=src=") Prepended by src="
  2. .*? Lazy match any token
  3. (?=[\?"]) Until either a ? or " would be the next token

If you might have a longer URL that doesn’t end with ?

(?<=src=").*?(?=[\*"])