Regular Expressions 101

Community Patterns

Isolate URL in Iframe

1

Regular Expression
ECMAScript (JavaScript)

/
src="([^"]+)"
/
i

Description

Will select everything between the double quotes in an Iframe's src tag. Useful for retrieving/replacing the URL.

Submitted by anonymous - 8 years ago