From: Max Williams Date: 2008-10-10T18:03:52+09:00 Subject: Re: simple regexp help needed - pull phrase out of string Patrick He wrote: > Hello Max, > > Maybe you can try this regex pattern: > > irb(main):007:0> str.scan(/password:([^\s]+)/)[0] > => ["banana"] > > > Regards, > Patrick Aha, 'scan', that's great thanks. -- Posted via http://www.ruby-forum.com/.