From: Ryan Davis Date: 2012-10-03T07:59:43+09:00 Subject: Re: sparse xml string On Oct 1, 2012, at 15:11 , ajay paswan wrote: > 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? http://www.zenspider.com/Languages/Ruby/QuickRef.html#regexen