Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^<a((?!title=".*")(\X))*(<\/a>)$
/
gm

Description

Matches any a tag that does not include a title attribute in its definition

Submitted by anonymous - 5 years ago