Inserting column of text (from a variable) after a PATTERN?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
PJay
Posts: 4
Joined: Tue Dec 13, 2005 9:47 pm

Inserting column of text (from a variable) after a PATTERN?

Post by PJay »

Hi,

I've been trying for hours to add a column of text (from a global variable) after a 2 line pattern but can't seem to find a way to do it! :(

I have the following pattern:

Code: Select all

sometext=sometext
{
<want to insert here>
So far, using the following, I've managed to insert after a SINGLE line:

Restrict to lines matching [sometext=sometext]
+--Insert column 0 [@testVariable]

This results in:

Code: Select all

sometext=sometext
<inserted text>
How do I write after MULTIPLE matching lines?

Any help would be appreciated!

Thanks - PJay
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

A search/replace can also be used as a subfilter - just use the appropriate matching pattern, and drop in an Add Footer sub filter.
PJay
Posts: 4
Joined: Tue Dec 13, 2005 9:47 pm

Post by PJay »

Worked a treat, thanks Simon!
Post Reply