What is the best way to get quoted words / phrases out of the text?
This my attempt does not work properly:
text.scan(/\"([^"]+)/)
I think you want:
text.scan(/"([^"]*)"/)
It works in Rubular.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With