What regex will find the triple quote comments (possibly multi-line) in a Python source code?
Python is not a regular language and cannot reliably be parsed using regex.
If you want a proper Python parser, look at the ast module. You may be looking for get_docstring.
get_docstring
2.1m questions
2.1m answers
60 comments
57.0k users