@@ -219,10 +219,10 @@ msgid ""
219219"``\\ w`` in a string pattern by supplying the :const:`re.ASCII` flag when "
220220"compiling the regular expression."
221221msgstr ""
222- "让我们举一个例子:``\\ w`` 匹配任何字母数字字符。 如果正则表达式模式以字节类表示,这相当于类 "
223- "``[a-zA-Z0-9_]``。如果正则表达式是一个字符串 ,``\\ w`` 将匹配由 :mod:`unicodedata` 模块提供的 Unicode "
224- " 数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 :const:`re.ASCII` 标志,可以在字符串模式中使用更为受限制的 "
225- "``\\ w`` 定义。"
222+ "让我们举一个例子:``\\ w`` 匹配任何字母数字字符。 如果正则表达式以 bytes 类型表示,`` \\ w``相当于字符类 "
223+ "``[a-zA-Z0-9_]`` 。如果正则表达式是 str 类型 ,``\\ w`` 将匹配由 :mod:`unicodedata` 模块提供的 "
224+ "Unicode 数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 :const:`re.ASCII` 标志,可以在 str "
225+ "表达式中使用较为狭窄的 ``\\ w`` 定义。"
226226
227227#: ../../howto/regex.rst:123
228228msgid ""
@@ -232,16 +232,16 @@ msgid ""
232232"Standard Library reference. In general, the Unicode versions match any "
233233"character that's in the appropriate category in the Unicode database."
234234msgstr ""
235- "以下特殊序列列表不完整 。 有关 Unicode 字符串模式的序列和扩展类定义的完整列表,请参阅标准库参考中的最后一部分 :ref:`正则表达式语法 "
236- "<re- syntax>` 。通常,Unicode 版本匹配 Unicode 数据库中相应类别中的任何字符 。"
235+ "以下为特殊序列的不完全列表 。 有关 Unicode 字符串正则表达式的序列和扩展类定义的完整列表,参见标准库参考中 :ref:`正则表达式语法 <re- "
236+ "syntax>` 的最后一部分 。通常,Unicode 版本的字符类会匹配 Unicode 数据库的相应类别中的任何字符 。"
237237
238238#: ../../howto/regex.rst:131
239239msgid "``\\ d``"
240240msgstr "``\\ d``"
241241
242242#: ../../howto/regex.rst:131
243243msgid "Matches any decimal digit; this is equivalent to the class ``[0-9]``."
244- msgstr "匹配任何十进制数字;这等价于类 ``[0-9]``。"
244+ msgstr "匹配任何十进制数字,等价于字符类 ``[0-9]`` 。"
245245
246246#: ../../howto/regex.rst:134
247247msgid "``\\ D``"
@@ -250,7 +250,7 @@ msgstr "``\\D``"
250250#: ../../howto/regex.rst:134
251251msgid ""
252252"Matches any non-digit character; this is equivalent to the class ``[^0-9]``."
253- msgstr "匹配任何非数字字符;这等价于类 ``[^0-9]``。"
253+ msgstr "匹配任何非数字字符,等价于字符类 ``[^0-9]`` 。"
254254
255255#: ../../howto/regex.rst:138
256256msgid "``\\ s``"
@@ -260,7 +260,7 @@ msgstr "``\\s``"
260260msgid ""
261261"Matches any whitespace character; this is equivalent to the class ``[ "
262262"\\ t\\ n\\ r\\ f\\ v]``."
263- msgstr "匹配任何空白字符;这等价于类 ``[ \\ t\\ n\\ r\\ f\\ v]``。"
263+ msgstr "匹配任何空白字符,等价于字符类 ``[ \\ t\\ n\\ r\\ f\\ v]`` 。"
264264
265265#: ../../howto/regex.rst:142
266266msgid "``\\ S``"
@@ -270,7 +270,7 @@ msgstr "``\\S``"
270270msgid ""
271271"Matches any non-whitespace character; this is equivalent to the class ``[^ "
272272"\\ t\\ n\\ r\\ f\\ v]``."
273- msgstr "匹配任何非空白字符;这相当于类 ``[^ \\ t\\ n\\ r\\ f\\ v]``。"
273+ msgstr "匹配任何非空白字符,等价于字符类 ``[^ \\ t\\ n\\ r\\ f\\ v]`` 。"
274274
275275#: ../../howto/regex.rst:146
276276msgid "``\\ w``"
@@ -280,7 +280,7 @@ msgstr "``\\w``"
280280msgid ""
281281"Matches any alphanumeric character; this is equivalent to the class "
282282"``[a-zA-Z0-9_]``."
283- msgstr "匹配任何字母与数字字符;这相当于类 ``[a-zA-Z0-9_]``。"
283+ msgstr "匹配任何字母与数字字符,等价于字符类 ``[a-zA-Z0-9_]`` 。"
284284
285285#: ../../howto/regex.rst:150
286286msgid "``\\ W``"
@@ -290,14 +290,14 @@ msgstr "``\\W``"
290290msgid ""
291291"Matches any non-alphanumeric character; this is equivalent to the class "
292292"``[^a-zA-Z0-9_]``."
293- msgstr "匹配任何非字母与数字字符;这相当于类 ``[^a-zA-Z0-9_]``。"
293+ msgstr "匹配任何非字母与数字字符,等价于字符类 ``[^a-zA-Z0-9_]`` 。"
294294
295295#: ../../howto/regex.rst:152
296296msgid ""
297297"These sequences can be included inside a character class. For example, "
298298"``[\\ s,.]`` is a character class that will match any whitespace character, "
299299"or ``','`` or ``'.'``."
300- msgstr "这些序列可以包含在字符类中。 例如,``[\\ s,.]`` 是一个匹配任何空格字符的字符类或者 ``','`` , 或 ``'.'``。"
300+ msgstr "这些序列可以包含在字符类中。 例如,``[\\ s,.]`` 是一个匹配任何空白字符、 ``','`` 或 ``'.'`` 的字符类 。"
301301
302302#: ../../howto/regex.rst:156
303303msgid ""
@@ -306,8 +306,8 @@ msgid ""
306306"(:const:`re.DOTALL`) where it will match even a newline. ``.`` is often "
307307"used where you want to match \" any character\" ."
308308msgstr ""
309- "本节的最后一个元字符是 ``.`` 。 它匹配除换行符之外的任何内容 ,并且有一个可选模式( :const:`re.DOTALL` )甚至可以匹配换行符。 "
310- " ``.`` 常用于你想匹配 “任何字符”的地方 。"
309+ "本节的最后一个元字符是 ``.`` 。 它匹配除换行符之外的任何字符 ,并且有一个可选模式( :const:`re.DOTALL` "
310+ "),在该模式下它甚至可以匹配换行符。 ``.`` 通常用于你想匹配 “任何字符”的场景 。"
311311
312312#: ../../howto/regex.rst:163
313313msgid "Repeating Things"
0 commit comments