Regular Expressions 101

Community Patterns

Onclick events detector

1

Regular Expression
PCRE (PHP <7.3)

/
on\w+\s?=\s?+("|')?[^"'>]*("|')?(?=>)
/
g

Description

Cut events from tags

Submitted by Romario5 - 8 years ago