http://www.perlmonks.org?node_id=531461


in reply to Split a string to remove quotes and parentheses

You can try perl search/replace regexp:
$s = '("test123")'; $s =~ s/(\("|"\))//g; print "$s\n";
Will print:
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
    Thank you so much... It worked