Quick actions

cmd+k|ctrl+k

Navigation

Languages

Python Automation of Regular Expression

Snippet info

Language

Python

Visibility

public

Author

dharmendrarah

Created

2023-01-09T07:12:25.903288Z

Updated

2023-01-09T07:12:25.903288Z


import re
s1="one two three four five 6 7 8 9 10"
r=re.compile(r'[\d]+')
result=re.findall(r,s1)
print(result)
INFO