EmEditor (text editor) Forum Index Regular Expressions
delete all java-script tags in the HTML file | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Serg525 | Posted on: 2/18/2013 9:53 am |
Just popping in ![]() ![]() Joined: 2/18/2013 From: Posts: 2 |
delete all java-script tags in the HTML file You can delete all java-script tags in the HTML file:
Just use one of these regular expressions: <script[^>]*>.*</script> or <script(.*?)>.*?</script> or <script.*?<\/script> or <script( [^>]+)?>(.*)</script> -------------------- The best choice is: <script(.*?)<\/script> Don't forget to check: (X)regular expression --------------------- For it could work in the multi-line file do the next: Check "Regular Expressions Can Match New Line Characters" (in the options menu "Customize Tab->Search") And input 20000 lines (for example) for "Additional Lines to Search for Regular Expressions" |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |


