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

R List row name -

sql server - python to mssql encoding problem -

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