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

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

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

Postby PJay » Tue Feb 14, 2006 7:01 am

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: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Thu Feb 16, 2006 3:57 pm

A search/replace can also be used as a subfilter - just use the appropriate matching pattern, and drop in an Add Footer sub filter.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Postby PJay » Sun Feb 19, 2006 10:50 am

Worked a treat, thanks Simon!


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 4 guests