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