I have a string which is in following format or comma separated format
s1 ,s2,s3,s4,
and so on. I want to convert it into
s1
s2
s3
s4
..
..
..
I know how I can do this by using a loop but I want to do this by regex in c# and in java without using the loop can I achive this ???