Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Find image html tags without alternative text
Open Workspace
PCRE2 (PHP)
Match
Created 2024-05-20 12:36
1
Regular Expression
/
(
<img
(?!
.
*?
alt=
(
[
'"
]
)
.
*?
\2
)
[^
>
]
*
)(
>
)
/
gm
Description
This regex finds images html tags without alternative text
Submitted by
Anonymous