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.
在 TextPad 中,我试图找到任何不以 6 或 7 位数字开头的行。所以它应该找到所有看起来不像的行:
“123456”或“1234567”
我写了这个表达式:
^[^(\d{6,7})]
它没有找到仅以 2 位数字开头的行,如下所示:
“12个月”
也许是因为 min/max {} 表达式不适用于否定语句?
谢谢