
As shown in figure last paragraph using the patterns of greed, not match where the wrong
CodePudding user response:
Yes, should be to grep does not support the greed mode, you can refer to https://deerchao.cn/tutorials/regex/diffs.htmlIf is the shell programming, you can use perl interaction pattern to do, or perl -e, perl regular matching function is more powerful