Python3正则表达式

一、Python3正则表达式匹配

Python中re模块提供多种与正则表达式相关的操作。其中最基本的操作就是匹配。使用re模块的match()函数进行匹配,如果字符串开头匹配成功,则返回一个匹配对象,否则返回None。

import re

text = "This is a sample text"
pattern = "This.*text"

match_obj = re.match(pattern, text)

if match_obj:
    print("Match found: ", match_obj.group())
else:
    print("No match found")

使用re模块的search()函数进行匹配,函数在字符串中搜索匹配项。如果搜索到,则返回一个匹配对象,否则返回None。

import re

text = "This is a sample text"
pattern = "sample"

match_obj = re.search(pattern, text)

if match_obj:
    print("Match found: ", match_obj.group())
else:
    print("No match found")

使用re模块的findall()函数找到所有匹配的项并以列表形式返回。如果没有找到匹配,返回空列表。

import re

text = "This is a sample text with matches"
pattern = "is"

match_list = re.findall(pattern, text)

print("Match found: ", match_list)

二、Python3正则表达式r的作用

在Python中,在正则表达式字符串之前加上”r”,会将该字符串视为原始字符串,即忽略其中的转义字符。

import re

pattern = "\t"

match_obj = re.search(pattern, "This is a\t sample text with matches")

print("Match found: ", match_obj.group())

pattern = r"\t"

match_obj = re.search(pattern, "This is a\t sample text with matches")

print("Match found: ", match_obj.group())

三、Python3正则表达式匹配回车符

在Python中,除了普通字符外,还有一些特殊字符,例如:\n、\r、\t等。匹配这些特殊字符需要使用对应的转义字符。\r(回车符)也是一个特殊字符,需要使用转义字符进行匹配。

import re

pattern = r"\r"

match_obj = re.search(pattern, "This is a sample text with \rmatches")

print("Match found: ", match_obj.group())

四、Python正则表达式的作用

Python正则表达式是一种文本模式,它可以用来匹配、替换特定的文本。Python正则表达式通常用于数据处理、文本处理、爬虫、网络编程等方面。

五、Python正则表达式应用

Python正则表达式的应用非常广泛,以下是一些实际应用场景:

1、抓取HTML、XML等页面中的数据

import re
import requests

url = "https://www.example.com"
response = requests.get(url)

pattern = r"(.*)"
match_obj = re.search(pattern, response.text)

if match_obj:
    print(match_obj.group(1))
</pre><p>2、提取JSON数据中的特定字段</p><pre>
import re
import json

json_string = '{"name":"Alice", "age":25, "gender":"female"}'

pattern = r'"name":"(\w+)"'

match_obj = re.search(pattern, json_string)

if match_obj:
    print(match_obj.group(1))
</pre><p>3、过滤不符合条件的数据</p><pre>
import re

pattern = r"^(\d{4})-(\d{1,2})-(\d{1,2})$"

date_list = ["2019-10-01", "2019-20-02", "2019-03-31", "2019-04-31"]

for date in date_list:
    match_obj = re.search(pattern, date)
    if match_obj:
        print(match_obj.group())
</pre><h3><span
class=ez-toc-section id=25E5258525AD25E325802581Python325E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E62595259925E725A8258B></span>六、Python3正则表达式教程<span
class=ez-toc-section-end></span></h3><p>如果您需要更深入的学习Python正则表达式,可以参考Python官方文档中关于re模块的内容,这里提供一个链接:</p><p><a
href=https://docs.python.org/3/library/re.html>https://docs.python.org/3/library/re.html</a></p><div
class=entry-readmore><div
class=entry-readmore-btn></div></div><div
class=entry-copyright><p>原创文章,作者:小蓝,如若转载,请注明出处:https://www.506064.com/n/254735.html</p></div></div><div
class=entry-tag><a
href=https://www.506064.com/n/tag/zhengzebiaodashi rel=tag>正则表达式</a></div><div
class=entry-action><div
class=btn-zan data-id=254735><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-thumb-up-fill></use></svg></i> 赞 <span
class=entry-action-num>(0)</span></div><div
class=btn-dashang>
<i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-cny-circle-fill></use></svg></i> 打赏 <span
class="dashang-img dashang-img2">
<span>
<img
src=//static.506064.com/wp-content/uploads/2024/12/2024121004124055.png alt=微信扫一扫>
微信扫一扫 </span>
<span>
<img
src=//static.506064.com/wp-content/uploads/2024/12/2024121004113670.png alt=支付宝扫一扫>
支付宝扫一扫 </span>
</span></div></div><div
class=entry-bar><div
class=entry-bar-inner><div
class=entry-bar-author>
<a
data-user=22595 target=_blank href=https://www.506064.com/spacehome/f08e84c43f class="avatar j-user-card">
<img
alt=小蓝的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60><span
class=author-name>小蓝</span>  </a></div><div
class=entry-bar-info><div
class="info-item meta">
<a
class="meta-item j-heart" href=javascript:; data-id=254735><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-star></use></svg></i> <span
class=data>0</span></a>  <a
class=meta-item href=#comments><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-comment></use></svg></i> <span
class=data>0</span></a></div><div
class="info-item share">
<a
class="meta-item mobile j-mobile-share" href=javascript:; data-id=254735 data-qrcode=https://www.506064.com/n/254735.html><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-share></use></svg></i> 生成海报</a>
<a
class="meta-item wechat" data-share=wechat target=_blank rel=nofollow href=#>
<i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-wechat></use></svg></i>  </a>
<a
class="meta-item weibo" data-share=weibo target=_blank rel=nofollow href=#>
<i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-weibo></use></svg></i>  </a>
<a
class="meta-item qq" data-share=qq target=_blank rel=nofollow href=#>
<i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-qq></use></svg></i>  </a></div><div
class="info-item act">
<a
href=javascript:; id=j-reading><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-article></use></svg></i></a></div></div></div></div></div><div
class=entry-page><div
class="entry-page-prev entry-page-nobg">
<a
href=https://www.506064.com/n/254733.html title="如何安装Android Studio并创建Android应用" rel=prev>
<span>如何安装Android Studio并创建Android应用</span>
</a><div
class=entry-page-info>
<span
class=pull-left><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-arrow-left-double></use></svg></i> 上一篇</span>
<span
class=pull-right>2024-12-15 12:13</span></div></div><div
class="entry-page-next entry-page-nobg">
<a
href=https://www.506064.com/n/254699.html title="Linux Set命令:管理环境变量的必备工具" rel=next>
<span>Linux Set命令:管理环境变量的必备工具</span>
</a><div
class=entry-page-info>
<span
class=pull-right>下一篇 <i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-arrow-right-double></use></svg></i></span>
<span
class=pull-left>2024-12-15 12:13</span></div></div></div><div
class=entry-related-posts><h3 class="entry-related-title">相关推荐</h3><ul
class="entry-related cols-3 post-loop post-loop-default"><li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/375436.html target=_blank rel=bookmark>
Python正则表达式search()和match()有什么区别? </a></h3><div
class=item-excerpt><p>search()和match()都是Python中的正则表达式函数,它们的作用都是在一个字符串中搜索匹配正则表达式的位置,但它们有着不同的使用场景和返回结果。 一、search()…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=47950 target=_blank href=https://www.506064.com/spacehome/tsrkp class="avatar j-user-card">
<img
alt=TSRKP的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>TSRKP</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-29</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/373839.html target=_blank rel=bookmark>
MySQL正则表达式替换 </a></h3><div
class=item-excerpt><p>MySQL正则表达式替换是指通过正则表达式对MySQL中的字符串进行替换。在文本处理方面,正则表达式是一种强大的工具,可以方便快捷地进行字符串处理和匹配。在MySQL中,可以使用正…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=46356 target=_blank href=https://www.506064.com/spacehome/qpezy class="avatar j-user-card">
<img
alt=QPEZY的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>QPEZY</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-27</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/372403.html target=_blank rel=bookmark>
详解 IP 正则表达式 </a></h3><div
class=item-excerpt><p>一、IP 地址基础知识 在讲解 IP 的正则表达式前,我们先来了解一下 IP 地址的基础知识。IP 是 Internet Protocol 的缩写,用于标识网络中的设备。IP 地址…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=44922 target=_blank href=https://www.506064.com/spacehome/pqwrt class="avatar j-user-card">
<img
alt=PQWRT的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>PQWRT</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-24</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/372277.html target=_blank rel=bookmark>
深入理解grep正则表达式 </a></h3><div
class=item-excerpt><p>一、grep的基本用法 grep命令是Linux系统中最常用的命令之一,它可以在文件中查找特定的文本模式,非常方便。grep命令的基本用法: grep ‘pattern’ file…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=44797 target=_blank href=https://www.506064.com/spacehome/hqvpu class="avatar j-user-card">
<img
alt=HQVPU的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>HQVPU</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-24</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/371702.html target=_blank rel=bookmark>
sed正则表达式深度解析 </a></h3><div
class=item-excerpt><p>一、sed正则表达式 sed(stream editor)是一个基于行的文本编辑器,它可以执行基本的文本转换功能,其中包含正则表达式的匹配和替换功能。在sed中,正则表达式被广泛应…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=44223 target=_blank href=https://www.506064.com/spacehome/qcwap class="avatar j-user-card">
<img
alt=QCWAP的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>QCWAP</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-23</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/371263.html target=_blank rel=bookmark>
身份证号码正则表达式详解 </a></h3><div
class=item-excerpt><p>一、身份证号码的基础结构 身份证号码是由18个字符组成的,分为前17位和最后一位校验位。而校验位的计算方法是经过公式计算得来的,可以确定身份证号码是否错误。其中,前6位是地区码,接…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=43784 target=_blank href=https://www.506064.com/spacehome/wxywy class="avatar j-user-card">
<img
alt=WXYWY的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>WXYWY</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-23</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/371350.html target=_blank rel=bookmark>
正整数的正则表达式 </a></h3><div
class=item-excerpt><p>在编程开发过程中,我们经常需要进行一些数据验证操作,以确保用户输入的数据符合一定的格式和规范。而正则表达式就是一个非常强大的工具,可以帮助我们快速、准确地检查和过滤数据。本文将从多…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=43871 target=_blank href=https://www.506064.com/spacehome/auvgl class="avatar j-user-card">
<img
alt=AUVGL的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>AUVGL</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-23</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/369349.html target=_blank rel=bookmark>
正则表达式不包含某个字符串 </a></h3><div
class=item-excerpt><p>一、正则表达式基础 正则表达式是一种用来匹配字符串的工具。它通过定义一个规则来匹配符合该规则的特定文本,这样就可以对想要匹配的字符串进行过滤或者替换操作。正则表达式中包括了一些特殊…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=42083 target=_blank href=https://www.506064.com/spacehome/okrbu class="avatar j-user-card">
<img
alt=OKRBU的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>OKRBU</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-12</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/369104.html target=_blank rel=bookmark>
身份证正则表达式详细阐述 </a></h3><div
class=item-excerpt><p>一、身份证正则表达式 身份证号码是中国公民的唯一身份标识,其格式是18位纯数字或17位数字加1位大写字母X。身份证正则表达式使用正则表达式来描述此格式,以进行身份证号码的合法性校验…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=41839 target=_blank href=https://www.506064.com/spacehome/crnhi class="avatar j-user-card">
<img
alt=CRNHI的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>CRNHI</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-12</span><div
class=item-meta-right></div></div></div>
</li>
<li
class="item item-no-thumb"><div
class=item-content><h3 class="item-title">
<a
href=https://www.506064.com/n/368222.html target=_blank rel=bookmark>
深入探究车牌号正则表达式 </a></h3><div
class=item-excerpt><p>一、正则表达式的基本概念 正则表达式是一种非常强大的文本处理工具,通过一系列的字符、符号和特殊字符的组合,可以方便地进行字符串的匹配、查找、替换等操作。正则表达式通常被用于编写规则…</p></div><div
class=item-meta><div
class="item-meta-li author">
<a
data-user=41084 target=_blank href=https://www.506064.com/spacehome/qoclz class="avatar j-user-card">
<img
alt=QOCLZ的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-60 photo' height=60 width=60>  <span>QOCLZ</span>
</a></div>
<a
class="item-meta-li category" href=https://www.506064.com/n/category/code target=_blank>编程</a>
<span
class="item-meta-li date">2025-04-12</span><div
class=item-meta-right></div></div></div>
</li></ul></div><div
id=comments class=entry-comments><div
id=respond class=comment-respond><h3 id="reply-title" class="comment-reply-title">发表回复 <small><a
rel=nofollow id=cancel-comment-reply-link href=/n/254735.html#respond style=display:none;><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-close></use></svg></i></a></small></h3><div
class=comment-form><div
class=comment-must-login>请登录后评论...</div><div
class=form-submit><div
class="form-submit-text pull-left"><a
href=https://www.506064.com/login>登录</a>后才能评论</div> <button
name=submit type=submit id=must-submit class="wpcom-btn btn-primary btn-xs submit">提交</button></div></div></div></div></article></main><aside
class=sidebar><div
class="widget widget_profile"><div
class=profile-cover><img
class=j-lazy src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png data-original=//static.506064.com/wp-content/uploads/2024/03/1617180342.jpg alt=小蓝></div><div
class=avatar-wrap>
<a
target=_blank href=https://www.506064.com/spacehome/f08e84c43f class=avatar-link><img
alt=小蓝的头像 src=//static.506064.com/wp-content/uploads/2024/11/none.jpg class='avatar avatar-120 photo' height=120 width=120></a></div><div
class=profile-info>
<a
target=_blank href=https://www.506064.com/spacehome/f08e84c43f class=profile-name><span
class=author-name>小蓝</span></a><p
class=author-description>这个人很懒,什么都没有留下~</p><div
class=profile-stats><div
class=profile-stats-inner><div
class=user-stats-item>
<b>75.5K</b>
<span>文章</span></div><div
class=user-stats-item>
<b>0</b>
<span>评论</span></div><div
class=user-stats-item>
<b>0</b>
<span>粉丝</span></div></div></div>
<button
type=button class="wpcom-btn btn-xs btn-follow j-follow btn-primary" data-user=22595><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-add></use></svg></i>关注</button><button
type=button class="wpcom-btn btn-primary btn-xs btn-message j-message" data-user=22595><i
class="wpcom-icon wi"><svg
aria-hidden=true><use
xlink:href=#wi-mail-fill></use></svg></i>私信</button></div><div
class=profile-posts><h3 class="widget-title"><span>最近文章</span></h3><ul>  <li><a
href=https://www.506064.com/n/313016.html title=探究request.session()>探究request.session()</a></li>
<li><a
href=https://www.506064.com/n/313015.html title=深入浅出JS解构赋值>深入浅出JS解构赋值</a></li>
<li><a
href=https://www.506064.com/n/313014.html title=Python函数编写:提高代码模块性和重复利用性>Python函数编写:提高代码模块性和重复利用性</a></li>
<li><a
href=https://www.506064.com/n/313013.html title=javajson聚合(java组合和聚合)>javajson聚合(java组合和聚合)</a></li>
<li><a
href=https://www.506064.com/n/313012.html title=mysql数据库中间表如何设计,mysql数据库表的设计>mysql数据库中间表如何设计,mysql数据库表的设计</a></li></ul></div></div><div
class="widget widget_wpcc"><h3 class="widget-title"><span>繁体</span></h3><div
id=wpcc_widget_inner>
<span
id=wpcc_original_link class=wpcc_current_lang ><a
class=wpcc_link href=https://www.506064.com/n/254735.html title=不转换>不转换</a></span>
<span
id=wpcc_zh-hant_link class=wpcc_lang ><a
class=wpcc_link rel=nofollow href=https://www.506064.com/zh-hant/n/254735.html title=繁體中文 >繁體中文</a></span>
<span
id=wpcc_zh-hk_link class=wpcc_lang ><a
class=wpcc_link rel=nofollow href=https://www.506064.com/zh-hk/n/254735.html title=港澳繁體 >港澳繁體</a></span>
<span
id=wpcc_zh-tw_link class=wpcc_lang ><a
class=wpcc_link rel=nofollow href=https://www.506064.com/zh-tw/n/254735.html title=台灣正體 >台灣正體</a></span></div></div><div
class="widget widget-area widget-ez_toc_sticky"><div
id=ez-toc-widget-sticky-container class="ez-toc-widget-sticky-container ez-toc-widget-sticky-container-ez_toc_widget_sticky-2 ez-toc-widget-sticky-v2_0_73 ez-toc-widget-sticky counter-hierarchy ez-toc-widget-sticky-container ez-toc-widget-sticky-direction"><h3 class="widget-title"><span>
<span
class=ez-toc-widget-sticky-title-container><style>#ez_toc_widget_sticky-2 .ez-toc-widget-sticky-title , .ez-toc-widget-sticky-container-ez_toc_widget_sticky-2 .ez-toc-widget-sticky-title {
                                font-size: 120%;
                                font-weight: 500;
                                color: #000;
                            }
                            #ez_toc_widget_sticky-2 .ez-toc-widget-sticky-list li a , .ez-toc-widget-sticky-container-ez_toc_widget_sticky-2 .ez-toc-widget-sticky-list li a{
												;
												;
												;

							}
                            #ez_toc_widget_sticky-2 .ez-toc-widget-sticky-container ul.ez-toc-widget-sticky-list li.active , .ez-toc-widget-sticky-container-ez_toc_widget_sticky-2 ul.ez-toc-widget-sticky-list li.active{
                                background-color: #ededed;
                            }</style><span
class=ez-toc-widget-sticky-title-toggle><span
class="ez-toc-widget-sticky-title ez-toc-toggle" style="cursor: pointer">文章目录</span><a
href=# class="ez-toc-widget-sticky-pull-right ez-toc-widget-sticky-btn ez-toc-widget-sticky-btn-xs ez-toc-widget-sticky-btn-default ez-toc-widget-sticky-toggle" aria-label="Widget Easy TOC toggle icon"><span
style="border: 0;padding: 0;margin: 0;position: absolute !important;height: 1px;width: 1px;overflow: hidden;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);clip-path: inset(50%);white-space: nowrap;">Toggle Table of Content</span><span
class><span
class=eztoc-hide style=display:none;>Toggle</span><span
class=ez-toc-icon-toggle-span><svg
style="fill: #999;color:#999" xmlns=http://www.w3.org/2000/svg class=list-377408 width=20px height=20px viewBox="0 0 24 24" fill=none><path
d="M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z" fill=currentColor></path></svg><svg
style="fill: #999;color:#999" class=arrow-unsorted-368013 xmlns=http://www.w3.org/2000/svg width=10px height=10px viewBox="0 0 24 24" version=1.2 baseProfile=tiny><path
d="M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z"/></svg></span></span></a></span>
</span></span></h3><nav><ul
class='ez-toc-widget-sticky-list ez-toc-widget-sticky-list-level-1 ' ><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-1" href=#25E425B8258025E325802581Python325E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E5258C25B925E92585258D title=一、Python3正则表达式匹配>一、Python3正则表达式匹配</a></li><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-2" href=#25E425BA258C25E325802581Python325E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258Fr25E7259A258425E425BD259C25E7259425A8 title=二、Python3正则表达式r的作用>二、Python3正则表达式r的作用</a></li><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-3" href=#25E425B8258925E325802581Python325E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E5258C25B925E92585258D25E5259B259E25E825BD25A625E725AC25A6 title=三、Python3正则表达式匹配回车符>三、Python3正则表达式匹配回车符</a></li><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-4" href=#25E5259B259B25E325802581Python25E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E7259A258425E425BD259C25E7259425A8 title=四、Python正则表达式的作用>四、Python正则表达式的作用</a></li><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-5" href=#25E425BA259425E325802581Python25E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E525BA259425E7259425A8 title=五、Python正则表达式应用>五、Python正则表达式应用</a></li><li
class='ez-toc-widget-sticky-page-1 ez-toc-widget-sticky-heading-level-3'><a
class="ez-toc-link ez-toc-heading-6" href=#25E5258525AD25E325802581Python325E625AD25A325E52588259925E825A125A825E825BE25BE25E525BC258F25E62595259925E725A8258B title=六、Python3正则表达式教程>六、Python3正则表达式教程</a></li></ul></nav></div></div><div
class="widget widget_lastest_products"><h3 class="widget-title"><span>可能喜欢</span></h3><ul
class=p-list>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/6993.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=「百度快速抓取2024年最新申请方法」使用说明与权益获取 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/04/070111713518646-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/6993.html title=「百度快速抓取2024年最新申请方法」使用说明与权益获取>
「百度快速抓取2024年最新申请方法」使用说明与权益获取 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/2544.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=哪个文件是剪映字幕文件? decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/03/jy_which_file-480x300.jpg>  </a><h4 class="title">
<a
href=https://www.506064.com/n/2544.html title=哪个文件是剪映字幕文件?>
哪个文件是剪映字幕文件? </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/162518.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=可灵AI悄然上线独立APP! decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/11/image-24-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/162518.html title=可灵AI悄然上线独立APP!>
可灵AI悄然上线独立APP! </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/7001.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=百度站长平台「快速收录」4月26日下线 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/04/019781617003186-480x300.jpg>  </a><h4 class="title">
<a
href=https://www.506064.com/n/7001.html title=百度站长平台「快速收录」4月26日下线>
百度站长平台「快速收录」4月26日下线 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/125936.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=在Steam上体验《黑神话悟空》的最经济便宜购买途径 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/09/image-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/125936.html title=在Steam上体验《黑神话悟空》的最经济便宜购买途径>
在Steam上体验《黑神话悟空》的最经济便宜购买途径 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/117551.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=字节跳动旗下豆包AI编程助手MarsCode拉新活动:京东E卡 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/08/image-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/117551.html title=字节跳动旗下豆包AI编程助手MarsCode拉新活动:京东E卡>
字节跳动旗下豆包AI编程助手MarsCode拉新活动:京东E卡 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/160107.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt="超过 3 万个公开可用的 IPTV 频道列表" decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/11/image-21-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/160107.html title="超过 3 万个公开可用的 IPTV 频道列表">
超过 3 万个公开可用的 IPTV 频道列表 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/6832.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=腾讯云遨驰终端(OrcaTerm)轻量(2折)和CVM(5折)服务器续费券 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/04/qcloud-OrcaTerm-480x300.jpg>  </a><h4 class="title">
<a
href=https://www.506064.com/n/6832.html title=腾讯云遨驰终端(OrcaTerm)轻量(2折)和CVM(5折)服务器续费券>
腾讯云遨驰终端(OrcaTerm)轻量(2折)和CVM(5折)服务器续费券 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/217.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=Epic免费领游戏:荒野的召唤:垂钓者+无敌少侠:原子伊芙 decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/03/Epic-480x300.png>  </a><h4 class="title">
<a
href=https://www.506064.com/n/217.html title=Epic免费领游戏:荒野的召唤:垂钓者+无敌少侠:原子伊芙>
Epic免费领游戏:荒野的召唤:垂钓者+无敌少侠:原子伊芙 </a></h4></div>
</li>
<li
class="col-xs-24 col-md-12 p-item"><div
class=p-item-wrap>
<a
class=thumb href=https://www.506064.com/n/2540.html>
<img
width=480 height=300 src=https://static.506064.com/wp-content/themes/justnews/themer/assets/images/lazy.png class="attachment-default size-default wp-post-image j-lazy" alt=剪映识别的字幕文件在哪里? decoding=async data-original=https://static.506064.com/wp-content/uploads/2024/03/jy_zimu_location_yh-480x300.jpg>  </a><h4 class="title">
<a
href=https://www.506064.com/n/2540.html title=剪映识别的字幕文件在哪里?>
剪映识别的字幕文件在哪里? </a></h4></div>
</li></ul></div></aside></div></div><footer
class=footer><div
class=container><div
class="footer-col-wrap footer-with-none"><div
class="footer-col footer-col-copy"><ul
class="footer-nav hidden-xs"><li
id=menu-item-2539 class="menu-item menu-item-2539"><a
href=/tools/base64/ >Base64编码解码</a></li>
<li
id=menu-item-2550 class="menu-item menu-item-2550"><a
href=/tools/jianying/ >剪映字幕导出工具</a></li>
<li
id=menu-item-2551 class="menu-item menu-item-2551"><a
href=/tools/jianying/srtdr.html>导入剪映字幕工具</a></li></ul><div
class=copyright><p>Copyright © 2024 简单一点 版权所有 <a
href=https://beian.miit.gov.cn target=_blank rel="nofollow noopener">滇ICP备2024022404号-1</a> Powered by 506064.Com</p></div></div></div></div></footer><div
class="action action-style-0 action-color-0 action-pos-0" style=bottom:20%;><div
class="action-item j-share">
<i
class="wpcom-icon wi action-item-icon"><svg
aria-hidden=true><use
xlink:href=#wi-share></use></svg></i></div><div
class="action-item gotop j-top">
<i
class="wpcom-icon wi action-item-icon"><svg
aria-hidden=true><use
xlink:href=#wi-arrow-up-2></use></svg></i></div></div> <script type=speculationrules>{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"\/*"},{"not":{"href_matches":["\/wp-*.php","\/wp-admin\/*","\/wp-content\/uploads\/*","\/wp-content\/*","\/wp-content\/plugins\/*","\/wp-content\/themes\/justnews\/*","\/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}</script> <link
rel=stylesheet href=https://static.506064.com/wp-content/cache/minify/b8217.css media=all><style id=ez-toc-widget-sticky-inline-css>.ez-toc-widget-sticky-direction {direction: ltr;}.ez-toc-widget-sticky-container ul{counter-reset: item ;}.ez-toc-widget-sticky-container nav ul li a::before {content: counters(item, '.', decimal) '. ';display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left; }</style> <script id=main-js-extra>/*<![CDATA[*/var _wpcom_js = {"webp":"?x-oss-process=image\/format,webp","ajaxurl":"https:\/\/www.506064.com\/wp-admin\/admin-ajax.php","theme_url":"https:\/\/www.506064.com\/wp-content\/themes\/justnews","slide_speed":"5000","is_admin":"0","lang":"zh_CN","js_lang":{"share_to":"\u5206\u4eab\u5230:","copy_done":"\u590d\u5236\u6210\u529f\uff01","copy_fail":"\u6d4f\u89c8\u5668\u6682\u4e0d\u652f\u6301\u62f7\u8d1d\u529f\u80fd","confirm":"\u786e\u5b9a","qrcode":"\u4e8c\u7ef4\u7801","page_loaded":"\u5df2\u7ecf\u5230\u5e95\u4e86","no_content":"\u6682\u65e0\u5185\u5bb9","load_failed":"\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","expand_more":"\u9605\u8bfb\u5269\u4f59 %s"},"share":"1","share_items":{"weibo":{"title":"\u5fae\u535a","icon":"weibo"},"wechat":{"title":"\u5fae\u4fe1","icon":"wechat"},"qzone":{"title":"QQ\u7a7a\u95f4","icon":"qzone"},"qq":{"title":"QQ\u597d\u53cb","icon":"qq"},"douban":{"name":"douban","title":"\u8c46\u74e3","icon":"douban"}},"lightbox":"1","post_id":"254735","user_card_height":"356","poster":{"notice":"\u8bf7\u300c\u70b9\u51fb\u4e0b\u8f7d\u300d\u6216\u300c\u957f\u6309\u4fdd\u5b58\u56fe\u7247\u300d\u540e\u5206\u4eab\u7ed9\u66f4\u591a\u597d\u53cb","generating":"\u6b63\u5728\u751f\u6210\u6d77\u62a5\u56fe\u7247...","failed":"\u6d77\u62a5\u56fe\u7247\u751f\u6210\u5931\u8d25"},"video_height":"482","fixed_sidebar":"1","dark_style":"0","font_url":"\/\/static.506064.com\/wp-content\/uploads\/wpcom\/fonts.f5a8b036905c9579.css","follow_btn":"<i class=\"wpcom-icon wi\"><svg aria-hidden=\"true\"><use xlink:href=\"#wi-add\"><\/use><\/svg><\/i>\u5173\u6ce8","followed_btn":"\u5df2\u5173\u6ce8","user_card":"1"};/*]]>*/</script> <script src=https://static.506064.com/wp-content/cache/minify/cdbcc.js></script> <script id=ez-toc-js-js-extra>/*<![CDATA[*/var ezTOC = {"smooth_scroll":"","visibility_hide_by_default":"","scroll_offset":"30","fallbackIcon":"<i class=\"ez-toc-toggle-el\"><\/i>","chamomile_theme_is_on":""};/*]]>*/</script> <script src=https://static.506064.com/wp-content/cache/minify/0c713.js></script> <script id=wpcom-member-js-extra>var _wpmx_js = {"ajaxurl":"https:\/\/www.506064.com\/wp-admin\/admin-ajax.php","plugin_url":"https:\/\/www.506064.com\/wp-content\/plugins\/wpcom-member\/","post_id":"254735","js_lang":{"login_desc":"\u60a8\u8fd8\u672a\u767b\u5f55\uff0c\u8bf7\u767b\u5f55\u540e\u518d\u8fdb\u884c\u76f8\u5173\u64cd\u4f5c\uff01","login_title":"\u8bf7\u767b\u5f55","login_btn":"\u767b\u5f55","reg_btn":"\u6ce8\u518c"},"login_url":"https:\/\/www.506064.com\/login","register_url":"https:\/\/www.506064.com\/reg","captcha_label":"\u70b9\u51fb\u8fdb\u884c\u4eba\u673a\u9a8c\u8bc1","captcha_verified":"\u9a8c\u8bc1\u6210\u529f","errors":{"require":"\u4e0d\u80fd\u4e3a\u7a7a","email":"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u7535\u5b50\u90ae\u7bb1","pls_enter":"\u8bf7\u8f93\u5165","password":"\u5bc6\u7801\u5fc5\u987b\u4e3a6~32\u4e2a\u5b57\u7b26","passcheck":"\u4e24\u6b21\u5bc6\u7801\u8f93\u5165\u4e0d\u4e00\u81f4","phone":"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801","terms":"\u8bf7\u9605\u8bfb\u5e76\u540c\u610f\u6761\u6b3e","sms_code":"\u9a8c\u8bc1\u7801\u9519\u8bef","captcha_verify":"\u8bf7\u70b9\u51fb\u6309\u94ae\u8fdb\u884c\u9a8c\u8bc1","captcha_fail":"\u4eba\u673a\u9a8c\u8bc1\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5","nonce":"\u968f\u673a\u6570\u6821\u9a8c\u5931\u8d25","req_error":"\u8bf7\u6c42\u5931\u8d25"}};</script> <script src=https://static.506064.com/wp-content/cache/minify/e6954.js></script> <script id=QAPress-js-js-extra>var QAPress_js = {"ajaxurl":"https:\/\/www.506064.com\/wp-admin\/admin-ajax.php","ajaxloading":"https:\/\/www.506064.com\/wp-content\/plugins\/qapress\/images\/loading.gif","max_upload_size":"2097152","compress_img_size":"1920","lang":{"delete":"\u5220\u9664","nocomment":"\u6682\u65e0\u56de\u590d","nocomment2":"\u6682\u65e0\u8bc4\u8bba","addcomment":"\u6211\u6765\u56de\u590d","submit":"\u53d1\u5e03","loading":"\u6b63\u5728\u52a0\u8f7d...","error1":"\u53c2\u6570\u9519\u8bef\uff0c\u8bf7\u91cd\u8bd5","error2":"\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","confirm":"\u5220\u9664\u64cd\u4f5c\u65e0\u6cd5\u6062\u590d\uff0c\u5e76\u5c06\u540c\u65f6\u5220\u9664\u5f53\u524d\u56de\u590d\u7684\u8bc4\u8bba\u4fe1\u606f\uff0c\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f","confirm2":"\u5220\u9664\u64cd\u4f5c\u65e0\u6cd5\u6062\u590d\uff0c\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f","confirm3":"\u5220\u9664\u64cd\u4f5c\u65e0\u6cd5\u6062\u590d\uff0c\u5e76\u5c06\u540c\u65f6\u5220\u9664\u5f53\u524d\u95ee\u9898\u7684\u56de\u590d\u8bc4\u8bba\u4fe1\u606f\uff0c\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f","deleting":"\u6b63\u5728\u5220\u9664...","success":"\u64cd\u4f5c\u6210\u529f\uff01","denied":"\u65e0\u64cd\u4f5c\u6743\u9650\uff01","error3":"\u64cd\u4f5c\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","empty":"\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a","submitting":"\u6b63\u5728\u63d0\u4ea4...","success2":"\u63d0\u4ea4\u6210\u529f\uff01","ncomment":"0\u6761\u8bc4\u8bba","login":"\u62b1\u6b49\uff0c\u60a8\u9700\u8981\u767b\u5f55\u624d\u80fd\u8fdb\u884c\u56de\u590d","error4":"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","need_title":"\u8bf7\u8f93\u5165\u6807\u9898","need_cat":"\u8bf7\u9009\u62e9\u5206\u7c7b","need_content":"\u8bf7\u8f93\u5165\u5185\u5bb9","success3":"\u66f4\u65b0\u6210\u529f\uff01","success4":"\u53d1\u5e03\u6210\u529f\uff01","need_all":"\u6807\u9898\u3001\u5206\u7c7b\u548c\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a","length":"\u5185\u5bb9\u957f\u5ea6\u4e0d\u80fd\u5c11\u4e8e10\u4e2a\u5b57\u7b26","load_done":"\u56de\u590d\u5df2\u7ecf\u5168\u90e8\u52a0\u8f7d","load_fail":"\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","load_more":"\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a","approve":"\u786e\u5b9a\u8981\u5c06\u5f53\u524d\u95ee\u9898\u8bbe\u7f6e\u4e3a\u5ba1\u6838\u901a\u8fc7\u5417\uff1f","end":"\u5df2\u7ecf\u5230\u5e95\u4e86","upload_fail":"\u56fe\u7247\u4e0a\u4f20\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01","file_types":"\u4ec5\u652f\u6301\u4e0a\u4f20jpg\u3001png\u3001gif\u683c\u5f0f\u7684\u56fe\u7247\u6587\u4ef6","file_size":"\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc72M","uploading":"\u6b63\u5728\u4e0a\u4f20...","upload":"\u63d2\u5165\u56fe\u7247"}};</script> <script src=https://static.506064.com/wp-content/cache/minify/81d57.js></script> <script id=ez-toc-widget-stickyjs-js-extra>var ezTocWidgetSticky = {"appearance_options":"","advanced_options":"","scroll_fixed_position":"30","sidebar_sticky_title_size":"120","sidebar_sticky_title_size_unit":"%","sidebar_sticky_title_weight":"500","sidebar_sticky_title_color":"#000","sidebar_sticky_item_size":"100","sidebar_sticky_item_size_unit":"%","sidebar_sticky_item_weight":"500","sidebar_sticky_item_color":"#000","sidebar_width":"auto","sidebar_width_size_unit":"none","fixed_top_position":"30","fixed_top_position_size_unit":"px","navigation_scroll_bar":"on","scroll_max_height":"auto","scroll_max_height_size_unit":"none","heading_label_tag":"default"};</script> <script src=https://static.506064.com/wp-content/cache/minify/11e9f.js></script> <script>var _mtj = _mtj || []; (function () { var mtj = document.createElement("script"); mtj.src = "https://node60.aizhantj.com:21233/tjjs/?k=3o93o6cc7gr"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(mtj, s); })();</script> <script type=application/ld+json>{
            "@context": "https://schema.org",
            "@type": "Article",
            "@id": "https://www.506064.com/n/254735.html",
            "url": "https://www.506064.com/n/254735.html",
            "headline": "Python3正则表达式",
             "description": "一、Python3正则表达式匹配 Python中re模块提供多种与正则表达式相关的操作。其中最基本的操作就是匹配。使用re模块的match()函数进行匹配,如果字符串开头匹配成功,…",
            "datePublished": "2024-12-15T12:13:11+08:00",
            "dateModified": "2024-12-15T12:13:11+08:00",
            "author": {"@type":"Person","name":"小蓝","url":"https://www.506064.com/spacehome/f08e84c43f","image":"https://static.506064.com/wp-content/uploads/2024/11/none.jpg"}        }</script> </body></html>