Город МОСКОВСКИЙ
00:04:52

Python Regular Expression Matching Multiline Comments and Docstrings

Аватар
PythonQuest
Просмотры:
23
Дата загрузки:
02.12.2023 16:15
Длительность:
00:04:52
Категория:
Обучение

Описание

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-regular-expression-matching-multiline-comments-docstrings/

* 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: https://www.facebook.com/groups/435421910242028/
Facebook: https://www.facebook.com/Softhints/
Twitter: https://twitter.com/SoftwareHints
Discord: https://discord.gg/Y7J569m

Рекомендуемые видео