How to find or grep multiple lines

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
prashob12
Posts: 18
Joined: Thu Oct 25, 2007 1:31 am
Location: India

How to find or grep multiple lines

Post by prashob12 »

Hi All,

Is there any regular expression so that i can find or grep the following

i.e., i want to find or grep <tenor>........</tenor> in between this there can many number of <absatz> tag

I want an expression to define the matter in between the "tenor" tag.


I dont want to create a macro using extended selection because there is around one lakh files.

<tenor>
<absatz>Die Rechtsbeschwerde des Gesamtbetriebsrates gegen den Beschlu&szlig; des Landesarbeitsgerichts D&uuml;sseldorf vom 16. Dezember 1996 -; 18 TaBV 75/96 -; wird zur&uuml;ckgewiesen, und zwar mit der Ma&szlig;gabe, da&szlig; der Antrag als unzul&auml;ssig verworfen wird.</absatz>
<absatz>Von Rechts wegen!</absatz>
</tenor>

I dont want to do any changes to the data...

Please help me in this...

Regards
Prashob
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Unfortunately, TextPad's regular expression engine is incapable of matching text containing an arbitrary number of newlines.

But you can do it with WildEdit (http://www.textpad.com/products/wildedit/), which is designed "to make the same changes to a set of text files in a folder hierarchy", and uses a far more powerful regular expression engine than TextPad.

What exactly do you want to achieve?

Thank you for introducing me to the word lakh (http://en.wikipedia.org/wiki/Lakh). :-)
Post Reply