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

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -