From: "Brian Schröder" Date: 2005-10-25T20:49:00+09:00 Subject: Re: Simple regex question On 25/10/05, Todd wrote: > Hello, > > Sorry to waste your time with this, but I'm new to regular expressions. > I, simply want to grab the text between two html tags: > > various characters and whitespace Dog Eggs > various characters and whitespace > > I want a regex that notices the "title" id and grabs Dog Eggs for me. > I have one that works, but it's really kludgey. > > Thanks, > Todd > irb(main):001:0> text = %(Dog Eggs) => "Dog Eggs" irb(main):002:0> text[%r((.*?)), 1] => "Dog Eggs" I really like this interface. regards, Brian > > -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/