String returns

Hi,
      my output String is =>contact(name).From this output, i want to do
is get "name" alone from the output.How can i achieve this can anyone
please tell me

Palani Kumar wrote:

Hi,
      my output String is =>contact(name).From this output, i want to do
is get "name" alone from the output.How can i achieve this can anyone
please tell me

output =~ /\(\w+\)/
name=$&