How to extract first line and Insert in the left margin

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Sergey58
Posts: 1
Joined: Thu Jan 19, 2012 8:33 am

How to extract first line and Insert in the left margin

Postby Sergey58 » Thu Jan 19, 2012 8:44 am

I have a some text:
k25sd45;
11111111;
22222222;
33333333;
44444444;

I need to get the text of this type:
k25sd45;11111111;
k25sd45;22222222;
k25sd45;33333333;
k25sd45;44444444;

Please help!

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

Re: How to extract first line and Insert in the left margin

Postby DataMystic Support » Thu Jan 19, 2012 6:53 pm

Hi Sergey,

Here it is below - the key here is the 'First Only' option being checked.

Code: Select all

|--EasyPattern [[ textstart, capture( longest 1+ not cr or lf or ';') as 'firstline' ]] with []
|     [ ] Match case
|     [ ] Whole words only
|     [ ] Case sensitive replace
|     [X] Prompt on replace
|     [ ] Skip prompt if identical
|     [X] First only
|     [ ] Extract matches
|     Maximum text buffer size 4096
|   
|--Remove lines:Line 1 .. line 1
|   
|--Add left margin [@firstline;]
|   
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


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

Who is online

Users browsing this forum: Google [Bot] and 1 guest