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.
在此列表中:
我只想匹配那些以图像开头但不包含单词small的图像。
然后正则表达式应返回:
到目前为止,我有:
/^image(?!.*small)/m
我用列表中的单行测试了这个
^image(?!.*_small.*).*\.png$
另请参阅有关如何在正则表达式中排除关键字的讨论