Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
src=(["'])(?<url>(?:https?:)?\/\/(?:(?!\1).)*?)\1
/
gm

Description

Extract the URL (http(s) only) of a given iframe's src attribute.

Submitted by Neill - 4 years ago (Last modified 4 years ago)