Ruby regex: extract text between quotes -


what best way quoted words / phrases out of text?

this attempt not work properly:

text.scan(/\"([^"]+)/) 

i think want:

text.scan(/"([^"]*)"/) 

it works in rubular.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -