Page 1 of 1

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

Posted: Tue Feb 14, 2006 7:01 am
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

Posted: Thu Feb 16, 2006 3:57 pm
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.

Posted: Sun Feb 19, 2006 10:50 am
by PJay
Worked a treat, thanks Simon!