gaozizhong
V2EX  ›  问与答

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

  •  
  •   gaozizhong · Dec 3, 2022 · 1671 views
    This topic created in 1317 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   ·   2856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 12:49 · PVG 20:49 · LAX 05:49 · JFK 08:49
    ♥ Do have faith in what you're doing.