Command parser

I need something that parses a command and returns its arguements in a table, but, anything within quotes counts as a single arguement, identical to the source command parser.

Example:
randomcommand “Arguement A” Second “Third one”
Would return:
“Arguement A”,
“Second”,
“Third one”

Reason I cannot use the source commands is because these are going to be chat commands.

I think it is pretty clear. All contribution most appreciated. Thanks.