From: Marnen Laibow-Koser Date: 2009-12-01T12:05:08+09:00 Subject: Re: one more regular expression, please J. mp wrote: > Hi, > > I really can't figure out how regular expressions work, So you're giving up and expecting us to do your work for you? Come on! You could at least try. > and since I > don't use them frequently is easier to ask... Yes, ask. Ask irb. Ask http://www.rubular.com . But don't you dare ask this list until you've made an attempt. Begging others to write code because you're too lazy to try is not cool! > > 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 Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.