Hi,
i've a string like "BLAH" (guotes included).
i need to control if the BLAH is in uppercase and then if it is in uppercase truncate the quotes ("), so "BLAH" becomes BLAH.
any solutions?
Thx
You mean If you find any upper case word within quotes remove quotes right ?
$str = 'abc "BLAH" aaa "eef" '; print "$str\n";
$str=~s/\"([^\"]+)\"/{(uc($1) eq $1)?$1:"\"$1\"";}/ge; print "$str\n";
This should work Ram
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]