开发者

Is \bword\b and \<word\> equivalent in GREP and what usage of \<, \>?

Is \bword\b and \<word\> equivalent in GREP and what usage of \开发者_如何转开发<, \> ?


I think the meaning is the same. But \b is Perl and \< > is Unix. For more details.


The only difference is that

  • \< matches the empty string at the beginning of the word;
  • \> matches the empty string at the end of the word;
  • \b matches the empty string at both the beginning and the end of the word.

Well, I bet this is not news for you :) but this is the only difference so you can any of these operators. I would vaguely suggest that \< and \> are a bit more readable, but it is more a taste question than anything else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜