> My string in some case as like this:
> Case1: A13   -> The result must be in array: [A, 13]
> Case2: ACB12334 -> The result must be in array: [ABC, 12334]

Here's one way:  

string = "ACB12334"
string =~ /[A-Z]/
alphas = $&

string = "ACB12334"
string =~ /[0-9]/
numerics = $&

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to