select
/*自己把对应的标点与特殊符号加进去,替换就行*/
regexp_replace(t.old_str, '[-,(),。,.!!@#]+','','g') as new_str
from (
select '湘A-1234J,。,' as old_str
union all
select '粤(A.1764J)' as old_str
union all
select '川,B1234J' as old_str
union all
select '#贵@C1254J' as old_str
) t