Forum: Ruby on Rails String returns

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
266f1a5c2a6e62a549bc2ae99ca4b1c2?d=identicon&s=25 Palani Kumar (palani)
on 2008-11-20 10:10
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
C5c0e0499446b84fd3bcc61cf7862539?d=identicon&s=25 Thani Ararsu (thaniyarasu)
on 2008-11-21 04:46
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=$&
This topic is locked and can not be replied to.