Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
http(s)?:\/\/[^\ "<]+(\.(jp(e)?g|png|gif))?[^\ "<]+
/
gi

Description

Find Links in HTML Markup

Submitted by someone - 10 years ago