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 -

sql server - python to mssql encoding problem -

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