EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     regexp: Replace in multiple-line text
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Pancho
Posted on: 3/3/2009 10:50 pm
Just popping in
Joined: 2/7/2009
From:
Posts: 9
regexp: Replace in multiple-line text
i write macro: strip html tags
how to replace this text without change
Tools->Customize->Search and set more than 3 lines in "Additional lines to search with Regex":
<style type="text/css" media="screen">
	@import "http://site.com";
</style>

I try "<(script|style)(\r\n|.)+?</\1>" - this not work (

thanks


----------------

Yutaka
Posted on: 3/4/2009 8:10 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: regexp: Replace in multiple-line text
Quote:

Pancho wrote:
i write macro: strip html tags
how to replace this text without change
Tools->Customize->Search and set more than 3 lines in "Additional lines to search with Regex":
<style type="text/css" media="screen">
	@import "http://site.com";
</style>

I try "<(script|style)(\r\n|.)+?</\1>" - this not work (

thanks


Mmm. It works on my machine with that exact regular expression. What is the issue exactly?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Pancho
Posted on: 3/4/2009 8:46 am
Just popping in
Joined: 2/7/2009
From:
Posts: 9
Re: regexp: Replace in multiple-line text
sorry,
"Additional Lines to Search for Regular Expressions text box" was 0
i did 50 and works fine !


----------------

Threaded | Newest First Previous Topic | Next Topic | Top


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