Negate match for word in the beginning of string in RE2 syntax?

前端 未结 1 1048
感动是毒
感动是毒 2021-01-20 03:33

Let\'s say that I have following strings:

  • mail to
  • tel:+358123456
  • http://www.google.fi
  • mailto:foo@bar.fi
  • hello world
相关标签:
1条回答
  • 2021-01-20 04:14

    There is no drop-in workaround for the lack of negative lookbehind on RE2 that I know of.

    Why don't you match on strings that do start with those keywords instead? Then you can dismiss those.

    0 讨论(0)
提交回复
热议问题