Hi guys,
I have a string variable, say have, as follows
id have
1
2
3 6
4 2
5 125
6
7 123456
8 136
9 45
10
As you can see, sometimes it can be "", sometimes it can be "123456". what I want to do is to separate the string that has more than (includes) two characters with ",". The results would be like ths want variable below:
id have want
1
2
3 6 6
4 2 2
5 125 1,2,5
6
7 123456 1,2,3,4,5,6
8 136 1,3,6
9 45. 4,5
10
Any solution/suggestion would be appreciated.
Thanks in advance,
Ali
I have a string variable, say have, as follows
id have
1
2
3 6
4 2
5 125
6
7 123456
8 136
9 45
10
As you can see, sometimes it can be "", sometimes it can be "123456". what I want to do is to separate the string that has more than (includes) two characters with ",". The results would be like ths want variable below:
id have want
1
2
3 6 6
4 2 2
5 125 1,2,5
6
7 123456 1,2,3,4,5,6
8 136 1,3,6
9 45. 4,5
10
Any solution/suggestion would be appreciated.
Thanks in advance,
Ali
Comment