Regular Expressions 101

Community Patterns

Community Library Entry

-3

Regular Expression
ECMAScript (JavaScript)

/
(<)[^<]+?(?=(facebook\.com))[^]+?(\/a>)
/
gmi

Description

This will remove all facebook urls from a HTML string

Submitted by Russell Miller - 10 years ago