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
1.4m articles
1.4m replys
5 comments
57.0k users