is there is some function that can take just text inside the quotes from the variable? Just like:
$text = \'I am \"pro\"\'; echo just_text_in_quotes($t
This regex:
"(\w*)"
will help you as you can see here: http://rubular.com/r/3kgH7NdtLm