From: Jenda Krynicky Date: 2007-03-07T22:48:34+09:00 Subject: Re: Regular expressions - Again J. mp wrote: > I'm really bad with this things called regular expressions, so I'm > looking for help again. > > Now, if I have a String like > "some string some content this I want" > > And I want to use the scan function to extract what is between > and how can I build my regular expression. The final result > should be: > this I want > > Thnaks You generaly want to use a HTML parser ... provided that Wuby has one. You may be lucky with since it's likely to not include any attributes, but still there might be some whitespace INSIDE the tags, there may be a comment inside the <title>... that you may or may not want, there may be a or inside a comment etc. etc. etc. In (censored) I'd use HTML::Parser from CPAN, but shhhh ... this is a Wuby site, we don't speak of such things here. Jenda -- Posted via http://www.ruby-forum.com/.