From: Shashank Date Date: 2003-01-12T10:27:28+09:00 Subject: Re: a smart way... How about this? ----------------------- C:\>irb irb(main):001:0> line = '' "" irb(main):002:0> line =~ // 0 irb(main):003:0> puts $1 daniel nil irb(main):004:0> exit C:\>ruby -v ruby 1.7.3 (2002-11-17) [i386-mswin32] -------------------------- I took the liberty of removing the unwanted parenthesis from your regex. I am assuming that you are new to Ruby and not to regex handling. If not, let me know and will try and elaborate more ... HTH, -- shanko "daniel" wrote in message news:3e20bc01$0$37624$91cee783@newsreader01.highway.telekom.at... > hello, > > I'm new and I'm searching for an smart way to extract > the string 'daniel' from this line > -- > > -- > > I can find this line via: line =~ // > But how to extrace this sting? > > This question is only an example for much similar things > (I'm not searching for XML-Stuff). > > daniel > >