From: Sam Duncan Date: 2012-10-02T07:25:02+09:00 Subject: Re: sparse xml string On 10/02/2012 11:11 AM, 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? > There are at least three articles on the Internet about regular expressions. Have a hunt for one that makes sense to you specifically =] Sam