in reply to Problem with string manipulation
Or even shorter if you're sure the model names don't contains escaped quotes:
while (<DATA>) { print "modelCombo.addItem($1);\n" if /^\s*(\"[^\"]+\")/; } [download]
Hope this helps, -gjb-