Regular Expressions 101

Community Patterns

Regex to replace alert

1

Regular Expression
PCRE (PHP <7.3)

/
<script>alert\(("\** [\p{L}]* \** [^)]*)\);<\/script>
/
u

Description

foo

Submitted by anonymous - 9 years ago