Regular Expressions 101

Community Patterns

1...34567...901

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 - 9 years ago