I need to write a extended version of the StringUtils.commaDelimitedListToStringArray function which gets an additional parameter: the escape char.
so calling my:
I know this has been discussed a million times. I tried searching through the forums and have seen some close regex expressions and tried to modify them but to no avail.
Say ...
I need to write a regex to match an element in a comma-separated list, ignoring whitespaces near ,.
For example:
elem1, elem2 ,elem3, elem4 ,elem5 ,elem6
Any of: elem1 ...
I am trying to generate a CSV file after reading data from database. Now individual data can contain comma, single quote and double quotes.
Please advice me How can I handle that ...