First of all ... I am new to regex
I need to split a comma-seperated given string. The problem for me is that the values themselves contain both quotes and comma characters.
This is the given string:
allTfs = 'normalTradesFilter,"Trade,Filter,with,commas",TradeFilterWithoutCommas,TradeFilter"with"Quotes,"Trade,Filter\"With,Both\""'
These should be the results
tf1 = 'normalTradesFilter'
tf2 = 'Trade,Filter,with,commas'
tf3 = 'TradeFilterWithoutCommas'
tf4 = 'TradeFilter"with"Quotes'
tf5 = 'Trade,Filter\"With,Both\"'
How to specify the regex expression? Thanks for any help.
best wishes, thomas