Hi I have the following values
000001010016C02AB 111*
000001010016C02 111H
000001010016C 111
And the expected output is
00000101001,C02AB,*
00000101001,C02,H
00000101001,C,
The values might vary.The length of this string will always be 23.if a character is not present then the position will be a filled with a white space. The Regex now i have is
(^.{11})[0-9](.{5})(?:.{5})(.*)
But while using this Regex in the second group there are white spaces returned. I want those those white spaces to be removed.
Current Output:
00000101001,C02AB,*
00000101001,C02 ,H
00000101001,C ,
Could anyone help me remove the white spaces from the second group?