|
-
Aug 9th, 2011, 04:31 AM
#1
RegEx - Split on comma character, excluding those in quotationmarks.
Hey there.
Given an input string like the following:
I, Need, Some, Coffee, Before, I, "Fall, Asleep"
I need to split this into parts like so:
I
Need
Some
Coffee
Before
I
Fall Asleep
Splitting on the comma character alone is easy enough, but how can I handle the quotationmarks? Regular expressions is not on my strong side, and I have been googling for quite a bit without any good results.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|