I'm using MediaEmbed (https://github.com/dereuromark/MediaEmbed) to convert any media URLs in a string to their respective embed code, but it's also catching media URLs within iframes (already embedded).
The expression I'm using to match links is:
"~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~"
What would this need to be changed to in order for it to not match if the URL is within an iframe?