EmEditor (text editor) Forum Index
   Regular Expressions
     How to match text in multi-line?
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
ToadLoadin
Posted on: 5/25/2010 1:26 am
Just can't stay away
Joined: 7/4/2008
From: China
Posts: 119
Re: How to match text in multi-line?
Hi Derek,

You can check "Multiline" option on Find or Replace dialogue, then the text box will expand to multiline.

Wish that helps.

toadloading

derekcohen
Posted on: 5/24/2010 9:57 pm
Not too shy to talk
Joined: 5/22/2010
From:
Posts: 38
Re: How to match text in multi-line?
I want to replace some text that spans multiple lines with some other text. If I copy the text across the lines I can't then paste it into the find box even though Use regular Expressions is checked.

I expected that the new lines would be automatically converted into \n.

thanks

Derek
Flint
Posted on: 4/7/2008 5:19 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Re: How to match text in multi-line?
Allow regular expressions to match new-lines (Customize -> Search).
shaohao
Posted on: 4/7/2008 4:58 am
Not too shy to talk
Joined: 11/12/2006
From:
Posts: 21
How to match text in multi-line?
I want to match the text:

aabb
xxxxx
xxxxx
xxxxx
...
ccdd

using my Regular Expression:

aabb\n(.*\n)+ccdd


Unfortunately, I found "(.*\n)+" did not work on EmEditor.
But UltraEdit can do it very well with Unix style re. UE support Perl styel, Unix style and UltraEdit style Regular Expression syntax. I guess EE use Perl style Regular Expression.
Threaded | Oldest First Previous Topic | Next Topic | Top


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