EmEditor (text editor) Forum Index
   Regular Expressions
     Delete all onclick=... onLoad=...
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Serg525
Posted on: 2/18/2013 9:57 am
Just popping in
Joined: 2/18/2013
From:
Posts: 2
Delete all onclick=... onLoad=...
You can delete all onclick=... onLoad=... with attributes.

Just use one of these:

(\s+on(?:click|load)=("|')(.*?)("|'))

or

(\s+on(?:click|load)=(?:"[^"]+")|(?:'[^']+'))
------------------


! Do not forget to uncheck "Match Case" in the window "Replace"
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文