Page 1 of 1

How to extract first line and Insert in the left margin

Posted: Thu Jan 19, 2012 8:44 am
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!

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

Posted: Thu Jan 19, 2012 6:53 pm
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;]
|