IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Emacs Lisp - 实用文本处理函数

    Geekinney\'s Blog发表于 2023-08-19 00:00:00
    love 0
    总结了一些实用的文本处理的函数。 搜索 1.根据正则 REGEXP 搜索文本 STRING,返回匹配的数量 (defun tps-search-count (string regexp) (let ((start 0) (count 0)) (save-match-data (while (string-match regexp string start) (cl-incf count) (setq start (match-end 0)))) count)) (tps-search-count "Treat a man as


沪ICP备19023445号-2号
友情链接