How to extract first line and Insert in the left margin

Get help with installation and running here.

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

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

How to extract first line and Insert in the left margin

Post by Sergey58 »

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

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

Post by DataMystic Support »

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;]
|   
Post Reply