Hi All,
I have to find all the commas in a string except the one that comes inside double quotes and then replace this comma and double quotes with "|"
e.g. "Gaurav,jain",g aurav,jain has to be converted into
|Gaurav,jain|ga urav|jain
I have been suggested that regex is a better option for the same.
I have used regex before but only very simple one.
So, if anyone can help me in writing this expression it would be really helpful.
Thanks
Gaurav Jain
I have to find all the commas in a string except the one that comes inside double quotes and then replace this comma and double quotes with "|"
e.g. "Gaurav,jain",g aurav,jain has to be converted into
|Gaurav,jain|ga urav|jain
I have been suggested that regex is a better option for the same.
I have used regex before but only very simple one.
So, if anyone can help me in writing this expression it would be really helpful.
Thanks
Gaurav Jain
Comment