正则陷阱 — 源码中转义引号导致非贪婪匹配提前终止

Domain: development · Evidence E0 — Contributor self-reported
regexpythonsource-parsingescape-sequencesdebug

Summary

用正则从 Python 源码中提取 `os.environ.get("KEY", "default_value")` 的默认值时,提取结果被截断:

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons