Is there an easy way to remove all non numbers from a string? For example if I have the string "12ed-1234" I would like to get only "121234". In reality the only character that the string can have that is non numeric would be "-" because of a javascript validation I am running. I could remove the "-" but I don't really want to do that at that time. Basically it is asking people to enter there membership ID which is xxxx-xxxx where the x's are numbers 0-9. Some people might include the "-" but some may not. Therefore for comparison I would like to remove it after it is submitted.
Thanks,
Zych
Thanks,
Zych