Regular Expressions 101

Community Patterns

find img without alt

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(<img(?!.*?alt=(['"]).*?\2)[^>]*)(>)
/

Description

okok

Submitted by anonymous - 3 years ago