regex trong python code example
Example 1: python regex tester
Find below are online regex tester
https://regex101.com/
https://pythex.org/
http://www.pyregex.com/
https://www.debuggex.com/
Here you insert your regular expression and get the test result.
Thank you !!!
Example 2: regex in python
# pip install regex
import re
# simple find all
sample = "Nothing lasts... but nothing is lost"
found = re.findall("thing", sample)
print(found)