Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python の正規表現を使用してファイルのコメント行を解析しています。コメントは次のようになります。
.. The comment is here Not comment Nope .. Yup .. .. This and the above are both comments!
ただし、正規表現\.\.\s+.*?&はこれらの行と一致しません。行末とアンパサンドに関して何か間違ったことをしているように感じます。
\.\.\s+.*?&