I work with text that is made by lines separated in left and right part.
eg.
first part1==second part1
first part2==second part2
first part2==second part3
first part3==second part4
When first part is the same in the 2 lines or more, I need to join the second part of the next line with same first part with the previous line or
first part1==second part1
first part2==second part2, second part3
first part3==second part4
I guess it shoul use capture, but i don't know how? I will be thankfull if you can help me.
joining of the second part of the line
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:
Use an EasyPattern to find
replace with
You may need to add 3 copies of this search/replace to pick up 3/4/5 line repeats.
Code: Select all
[ capture( 1+ chars) , '==', capture( 0+ not cr or lf ), cr, lf,
group1, '==', capture( 0+ not cr or lf ), cr, lf ]
Code: Select all
$1==$2, $3
-
- Posts: 3
- Joined: Sat Nov 18, 2006 1:12 am
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact: