You can also try PRX: data x; infile cards truncover; input var $200.; cards; 02p wed ssd values having alpha numeric people having rty ers that udf 34 they have edf 234 bcd fgh t ; data y; set x; new_var=prxchange('s/(\b[0-9a-zA-Z]{4,}\b)|(\b[0-9a-zA-Z]{1,2}\b)//i',-1, var); run; Haikuo
... View more