You have four choices on how to perform a regexp search, according to whether you want to extract the first match or all matches, and to their location. Additionally, you can call the same functions as methods on compiled regular expressions. Check out the notebooks linked below for more information on Regular Expressions in Python.
Embedded video, part of the following courses:
Computer Programming at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/4cd3xrjk
Coding for Scientists at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/2wx5w9yd
Notebooks will open on Google Colab - no installation required