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-
In reply to Re: Problem with string manipulation
by gjb
in thread Problem with string manipulation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |