I have a string like this:
var examplestring = 'Person said "How are you doing?" ';
How can I get the string inside the double quotes. Specifically, I want a var that is set to How are you doing? in this case.
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.
This will split on each “, into the following
And then select from index 1 of the new array, returning “How are you doing?” (without the quotes).
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/split