You could easily just do the following: cat=["com12", "com1", "cop233", "com1.1", "sap-12-1"]; cat = $.map(cat, function(a){ return a.replace(/[\d\.\-]/g, ""); });
Good Luck!
You could easily just do the following: cat=["com12", "com1", "cop233", "com1.1", "sap-12-1"]; cat = $.map(cat, function(a){ return a.replace(/[\d\.\-]/g, ""); });
Good Luck!