From: Ruby Bucket Date: 2009-12-01T15:16:18+09:00 Subject: Re: one more regular expression, please /[^\+]*\+\+\(\(([0-9]+)\)\)\+\+.*/ On Nov 30, 2009, at 9:07 PM, J. mp wrote: > Hi, > > I really can't figure out how regular expressions work, and since I > don't use them frequently is easier to ask... > > I have the follwow string > > ++((100))++askjasdjksjdkasdkjk++((200))++skdjsjd > > I need a reg expression that extracts only the first number inside the > first ++(( ))++ and ignore the rest..., in this case I need to return > 100 > > > thanks > -- > Posted via http://www.ruby-forum.com/. >