pythonの正規表現で、rf’^{re.escape(“<!– /wp:code –>”)}$’をパターンに指定することで、<!– /wp:code –>に完全一致する行だけを特定することができた updated: 2025/11/11 created: 2025/11/11