EmEditor (text editor) Forum Index
   Regular Expressions
     delete all java-script tags in the HTML file
Register To Post

Flat Previous Topic | Next Topic
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"
Flat Previous Topic | Next Topic


Subject Poster Date
 » delete all java-script tags in the HTML file Serg525 2/18/2013 9:53 am

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