Hi,

str = "ABCD12A2012"

I need to divide the string into "ABCD" and "12A2012" i.e. right at the
start of a number in the string

i can use str.partition(%r(\d)) which gives me ["ABCD","1","2A2012"]. I
can club the last two sub strings to get the work done. But is there a
better way to do so?

-- 
Posted via http://www.ruby-forum.com/.