0

Python の正規表現を使用してファイルのコメント行を解析しています。コメントは次のようになります。

.. The comment is here
Not comment
Nope
.. Yup
.. 
.. This and the above are both comments!

ただし、正規表現\.\.\s+.*?&はこれらの行と一致しません。行末とアンパサンドに関して何か間違ったことをしているように感じます。

4

3 に答える 3