Python Regular Expression Matching Multiline Comments and Docstrings

Published: 01 September 2019
on channel: Softhints - Python, Linux, Pandas
894
2

Topics

In this video you can find how to match single and multiline python comments and docstrings. Also you can find how to enable detection in PyCharm for broken and incomplete docstrings.

https://blog.softhints.com/python-reg...

* Match Python single line comment
* Match Python single and multi-line docstrings
* PyCharm code inspection for broken and missing docstrings


comments

#.*\n

docstrings


"""[\s\S]*?"""

"""[\d\D]*?"""

"""[\w\W]*?"""

(['"])\1\1[\d\D]*?\1{3}

([^:]"""[^\(]*)"""

---------------------------------------------------------------------------------------------------------------------------------------------------------------
Bonus resources


---------------------------------------------------------------------------------------------------------------------------------------------------------------
Code store

github: https://github.com/softhints/python/
bitbucket: https://bitbucket.org/softhints/

Socials

site: https://softhints.com/
Facebook:   / 435421910242028  
Facebook:   / softhints  
Twitter:   / softwarehints  
Discord:   / discord  


On this page of the site you can watch the video online Python Regular Expression Matching Multiline Comments and Docstrings with a duration of hours minute second in good quality, which was uploaded by the user Softhints - Python, Linux, Pandas 01 September 2019, share the link with friends and acquaintances, this video has already been watched 894 times on youtube and it was liked by 2 viewers. Enjoy your viewing!