相关疑难解决方法(0)

正则表达式预测grep中的"not follow by"

我试图为所有Ui\.未遵循Line或甚至只是信件的情况进行grepL

编写正则表达式以查找特定字符串的所有实例而不是其他字符串的正确方法是什么?

使用前瞻

grep "Ui\.(?!L)" *
bash: !L: event not found


grep "Ui\.(?!(Line))" *
nothing
Run Code Online (Sandbox Code Playgroud)

regex grep regex-lookarounds

92
推荐指数
4
解决办法
5万
查看次数

标签 统计

grep ×1

regex ×1

regex-lookarounds ×1