Here's what I did..seems to work: irb(main):069:0> a = "ABC123" => "ABC123" irb(main):070:0> b = a.split(/\d/) => ["ABC"] irb(main):071:0> b.push(a.sub(b[0],"")) => ["ABC", "123"]
which gives you the two entries in the array "b". Not sure how else to do it :) Shao _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
