Title |
Test
Find
(X)HTML click events
|
Expression |
(?i:on(blur|c(hange|lick)|dblclick|focus|keypress|(key|mouse)(down|up)|(un)?load|mouse(move|o(ut|ver))|reset|s(elect|ubmit))) |
Description |
This regex will match all the valid on event attributes in HTML 4.01/XHTML 1.0 |
Matches |
onclick | onsubmit | onmouseover |
Non-Matches |
click | onandon | mickeymouse |
Author |
Rating:
Michael Ash
|
Source |
|
Your Rating |
|
Title: Thanks for the pattern
Name: Darren Neimke
Date: 1/17/2004 7:52:42 AM
Comment:
Thanks for the pattern Michael, for your information I put it to use in a screen scraping program to remove scripts from pages; you can see the code here:
http://blogs.regexadvice.com/dneimke/archive/2004/01/17/346.aspx