Replace the string has the same first value

A place to try and solve your RegEx problems.
Post Reply
promanga
Posts: 1
Joined: Thu Nov 22, 2012 1:17 pm

Replace the string has the same first value

Post by promanga » Sat Nov 24, 2012 12:35 pm

Hi All!
I have two datas as below:


DATA1
number1
number2
number3
number4
bumber5
....
DATA2
number1-aaaaaaaaaaaaa
number3-bbbbbbbbbbbbb
number4-ccccccccccccccc
...
I need to replace and to combine in one data like this:

number1-aaaaaaaaaaaaa
number2
number3-bbbbbbbbbbbbb
number4-ccccccccccccccc
bumber5


Can any one provide suggestion for these ?
Post Reply