Hi All,
I have a string in which I have to find all the commas except the one which is followed by "space". I have tried ",[^ ], but it finds the patterns that start with , and one character.
e.g If my string is abc,bef, ghi,jkl,,mno
the it returns ',b' ',j' and ',,' while I want only ',' so that it can search from the next element in the string. Means it should return ',' ',' ','.
Thanks
Gaurav
I have a string in which I have to find all the commas except the one which is followed by "space". I have tried ",[^ ], but it finds the patterns that start with , and one character.
e.g If my string is abc,bef, ghi,jkl,,mno
the it returns ',b' ',j' and ',,' while I want only ',' so that it can search from the next element in the string. Means it should return ',' ',' ','.
Thanks
Gaurav
Comment