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

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

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

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