Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyRegFlags
#python 3.6.9 #PyRegFlags #this code is created by Rezaul Hoque on March 02,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 a = 'পাইথন is Python in Bangla.It has no connection with serpent python.And Python Regex is finally finished.March 02,2022.' pat = '[a-z]+' fit= re.findall(pat, a, re.ASCII) print(fit) pick=r'\b\w{6}\b' get=re.findall(pick,a,re.IGNORECASE) print(get) pat2= '.+' getMatch = re.search(pat2, a, re.DOTALL) if getMatch is not None: print(getMatch.group()) str='March 02,2022' pattern = r'''^(\w{5}) # match five characters at the beginning of the string (\s*)#match space zero or more time (\d{2},) # match two digits before character ‘,’ in the string (\d{4}$)'''#match four digits at the end of string b = re.search(pattern,str, re.VERBOSE) if b is not None: print(b.groups())
run
|
edit
|
history
|
help
0
Venture
Prueba
947
linked_lists
time module sleep localtime
playing around with python
Skillenza - Marker Count
BUCLE FOR EN PYTHON 3
1
7 Segment Display