Hi Steve, With Guy's help, I figured out hopefully the cleanest way. (I know this is overkill but I have time on my hands.) def parseCommandLine(aString) return aString.scan(/\w+|"(?:\\"|[^"])*"/) end Wayne ps you might also prefer ensuring word breaks with /\b\w+|"(?:\\"|[^"])*"/