diff options
Diffstat (limited to 'progs/a75.py')
-rw-r--r-- | progs/a75.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a75.py b/progs/a75.py new file mode 100644 index 0000000..7092017 --- /dev/null +++ b/progs/a75.py @@ -0,0 +1,4 @@ +import re
+def remove_extra_char(text1):
+ pattern = re.compile('[\W_]+')
+ return (pattern.sub('', text1))
\ No newline at end of file |