I have a line like this:
The boy told his mother: "Can I eat sweets?"
If I do a normal String.Split on it, I get:
{ 'The', 'boy', 'said', 'to', 'his', 'mother', '"Can', 'I', 'have', 'some', 'candy?"' }
I need an array:
{ 'The', 'boy', 'said', 'to', 'his', 'mother', 'Can I have some candy?' }
Obviously, I could just scroll the character by character and see if I am on the line or not, and all that ... but is there a better way? Using regular expressions?
arrays split c #
Entity
source share