相关疑难解决方法(0)

如何在grep中进行非贪婪的比赛?

我想grey最短的比赛,模式应该是这样的:

<car ... model=BMW ...>
...
...
...
</car>
Run Code Online (Sandbox Code Playgroud)

...表示任何字符,输入是多行.

regex shell command-line grep regex-greedy

166
推荐指数
5
解决办法
11万
查看次数

标签 统计

command-line ×1

grep ×1

regex ×1

regex-greedy ×1

shell ×1