I’m writing a program that has to remove separator characters from quoted strings in text files.
For example:
"Hello, my name is world"
Has to be:
"Hello my name is world"
This sounds quite easy at first (I thought it would be), but you need to detect when the quote starts, when the quote ends, then search that specific string for separator characters. How?
I’ve experimented with some Regexs but I just keep getting myself confused!
Any ideas? Even just something to get the ball rolling, I’m just completely stumped.
1 Answer