V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gaozizhong
V2EX  ›  问与答

正则表达式 RE2 不支持(?!expr),请教大家如何实现^(?!(aaa|bbb))?

  •  
  •   gaozizhong · Dec 3, 2022 · 1512 views
    This topic created in 1254 days ago, the information mentioned may be changed or developed.

    使用 RE2 筛选不以 aaa 或者 bbb 开头的内容

    Supplement 1  ·  Dec 3, 2022
    是^(?!(aaa|bbb)).*test ,Prometheus 里遇到的问题

    已经解决了,分两次筛选就好了,~.*test 然后!~(aaa|bbb).*test
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
    ♥ Do have faith in what you're doing.