Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyRegChars
#python 3.6.9 #PyRegChars #this code is created by Rezaul Hoque on February 11,2022; #contact:jewelmrh@yahoo.com;Dhaka,Bangladesh;https://rezaulhoque.wordpress.com,https://hoquestake.blogspot.com #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; import re s = "Today is Friday,\nFebruary 11,2022." samples = re.finditer('\d\d',s) for sample in samples: print(sample.group()) print("\n") words = re.finditer('\w',s) for word in words: print(word.group()) print("\n") spaces=re.finditer('\s',s) for space in spaces: print(space.group()) print("\n") nodigits=re.finditer('\D',s) for nodigit in nodigits: print(nodigit.group()) print("\n") dots=re.finditer('.',s) for dot in dots: print(dot.group())
run
|
edit
|
history
|
help
0
course 2 steve sch
Tuple_Exercise1_solution
Prime Numbers : -> Conventional Method
Multi-Layer Neural Networks
Simple calculator
Assignment-3a
H.W5
selenium -proj
Removing punctuation from strings
Stk String replace