Hi I follow your ways, but it seem don't work Here my script string = "ACB12334" puts string string =~ /[A-Z]/ puts string alphas = $& puts alphas
string = "ACB12334" puts string string =~ /[0-9]/ puts string numerics = $& puts numerics And I got the result: ACB12334 ACB12334 A ACB12334 ACB12334 1 Regards, Hue _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
