• 请不要在回答技术问题时复制粘贴 AI 生成的内容
larkifly
V2EX  ›  程序员

选中字符中的一个单词,自动生成对应的正则表达式,如何实现

  •  
  •   larkifly · Dec 13, 2019 · 1955 views
    This topic created in 2408 days ago, the information mentioned may be changed or developed.
    如题:
    看到好多商业日志收集工具,都有个功能,选中长字符串中的一个单词,自动生成从字符串中提取整个单词的正则表达式。

    问题一:这是如何实现的
    问题二:有相关的开源项目吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2506 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.