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*(\"[^\"]+\")/; }

Hope this helps, -gjb-