Regular Expressions 101

Community Patterns

Hyperlinks without a title

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