in reply to Split a string to remove quotes and parentheses
You can try perl search/replace regexp:
_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce
the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."
Will print:$s = '("test123")'; $s =~ s/(\("|"\))//g; print "$s\n";
test123
_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce
the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."
Robert Wilensky, University of California
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Split a string to remove quotes and parentheses
by perl_99_monk (Novice) on Feb 20, 2006 at 17:11 UTC |
In Section
Seekers of Perl Wisdom