Regular Expressions 101

Community Patterns

Iframe src catcher

1

Regular Expression
PCRE (PHP <7.3)

/
<iframe[^>]*src=[\"|']([^'\"]+)[\"|'][^>]*>
/
i

Description

In an html file, locate all sources for the iframes tags

Submitted by anonymous - 8 years ago