From: ajay paswan Date: 2012-10-02T07:11:54+09:00 Subject: Re: sparse xml string Sam Duncan wrote in post #1078254: > On 10/02/2012 10:58 AM, ajay paswan wrote: >>> >>> Sam >> What if: str="kl122ik3o" ? >> > 1.9.3p125 :002 > str.scan /[[:alnum:]]+<\/a>/ > => ["kl1", "22ik", "3o"] > > Ping pong > > I think perhaps you should read up on regular expressions in Ruby =] > > Sam I have gone through it previously but could not figure it out, is '.' denotes any character? -- Posted via http://www.ruby-forum.com/.