Python 笔记

白天 夜间 首页 下载 阅读记录
  我的书签   添加书签   移除书签

regular express

浏览 73 扫码 分享 2023-11-25 09:19:56
  • 问题

    问题

    在 re.compile(‘`*?`, `+?`, `??`
    The `'*'`, `'+'`, and `'?'` qualifiers are all _greedy_; they match as much text as possible. Sometimes this behaviour isn’t desired; if the RE `<.*>` is matched against `' b ‘, it will match the entire string, and not just‘‘. Adding?after the qualifier makes it perform the match in _non-greedy_ or _minimal_ fashion; as _few_ characters as possible will be matched. Using the RE<.*?>will match only‘‘`.

    若有收获,就点个赞吧

    0 人点赞

    上一篇:
    下一篇:
    • 书签
    • 添加书签 移除书签
    • Flask 中的 app-context 和 request-context
    • regular express
    • python 面向对象
    • 学习计划
    • 读书笔记
    暂无相关搜索结果!

      让时间为你证明

      展开/收起文章目录

      分享,让知识传承更久远

      文章二维码

      手机扫一扫,轻松掌上读

      文档下载

      请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
      PDF文档 EPUB文档 MOBI文档

      书签列表

        阅读记录

        阅读进度: 0.00% ( 0/0 ) 重置阅读进度

          思维导图备注