filter -n ""function(file) { return file.owner == "john"; }""
should be parsed into the following array:
[ 'filter',
'-n',
'function(file) { return file.owner == "john"; }' ]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not entirely sure how you want to handle the double quotes. Do you want to also be able to handle strings with only a single double quote on each end, or are the quotes always doubled?
Result: