How to strip out src="" value with twig from iframe code I have have a text field for copy-pasting an iFrame code.

&lt;iframe src="https://webpagelink.com/l/3556456/2019-03-06/34576" width="100%" 
height="500" type="text/html" frameborder="0" allowTransparency="true" 
style="border: 0"&gt;&lt;/iframe&gt;


What I need help with is striping out the URL within the src="" value from the iframe. Is this possible using Twig?

Thank you for your help!
You could write a module that adds a twig extension to return the value of src from the string. That way you get to utilise PHP as per https://stackoverflow.com/questions/17017684/how-to-get-url-from-the-iframe-using-php to get the value.

https://pluginfactory.io/ is a good starting point for adding a module to Craft.

alternative very dirty approach: If the iframe markup is always going to be the same, you could do |replace(), replacing everything before the src=" and everthing after the " width with empty strings. Then replace " width with an empty string.