Forum: Ruby Re: Regex with multiple 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.
1c1e3bdfe006a22214102fcd6434a012?d=identicon&s=25 Daniel Sheppard (Guest)
on 2005-12-21 06:23
(Received via mailing list)
"boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthi
snomatterhowmanyparenthiesisthereare)".scan(/\(([^\)]*)\)/)


    ==>[["returnthisplease"], ["butthis"],
["butIdowantthisnomatterhowmanyparenthiesisthereare"]]

>
> Posted via http://www.ruby-forum.com/.
>
>
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by NetIQ MailMarshal
#####################################################################################
This topic is locked and can not be replied to.