Home > Back-end >  Why didn't the regular expression match to?
Why didn't the regular expression match to?

Time:04-09




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.html
If is the shell programming, you can use perl interaction pattern to do, or perl -e, perl regular matching function is more powerful
  • Related