How to divide by space keeping words with spaces inside quotes?

Marcone marcone at email.com
Sun Aug 8 23:04:32 UTC 2021


How to divide by space keeping words with spaces inside quotes?

Exanple:

string text = "Duck Cat \"Carl Rivers\" Dog";

I want split to:

["Duck", "Cat", "Carl Rivers", "Dog"]


ATENTION: I DON'T WANT:

["Duck", "Cat", "Carl", "Rivers", "Dog"]


How can I get it in Dlang?


More information about the Digitalmars-d-learn mailing list