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!
How to extract first line and Insert in the left margin
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- 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
Hi Sergey,
Here it is below - the key here is the 'First Only' option being checked.
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;]
|