summaryrefslogtreecommitdiff
path: root/progs/a75.py
blob: 70920178477de39de6b060364415f33d6c6ae308 (plain)
1
2
3
4
import re
def remove_extra_char(text1):
  pattern = re.compile('[\W_]+')
  return (pattern.sub('', text1))