K
Kasper
Hello,
I got a problem with regular expressions.
My input data look like this :
aaa,bbcc,bbdd,bbee
aaa,bbcc,bbee,bbff,bbgg,bbhh
(There could be many elements like (,[^,]*) in one line)
I want to substitute every second and next element with first element.
The result of presented lines should be :
aaabbcc,aaabbdd,aaabbee
aaabbcc,aaabbee,aaabbff,aaabbgg,aaabbhh
It don't have to be one line substitution.
Please help - I have no idea how to do this and I tried almost everything.
Kasper
I got a problem with regular expressions.
My input data look like this :
aaa,bbcc,bbdd,bbee
aaa,bbcc,bbee,bbff,bbgg,bbhh
(There could be many elements like (,[^,]*) in one line)
I want to substitute every second and next element with first element.
The result of presented lines should be :
aaabbcc,aaabbdd,aaabbee
aaabbcc,aaabbee,aaabbff,aaabbgg,aaabbhh
It don't have to be one line substitution.
Please help - I have no idea how to do this and I tried almost everything.
Kasper