我re在Python 3.6.5中遇到了模块问题.我的正则表达式中有这种模式:
re
'\\nRevision: (\d+)\\n'
但是当我运行它时,我得到了一个DeprecationWarning.
DeprecationWarning
我在SO上搜索了这个问题,但实际上还没有找到答案 - 我应该用什么而不是\d+?只是[0-9]+或者别的什么?
\d+
[0-9]+
python regex python-3.x
python ×1
python-3.x ×1
regex ×1