Skip to content

Commit 327503d

Browse files
[po] auto sync
1 parent 9acf41c commit 327503d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "96.11%", "updated_at": "2024-08-25T14:47:09Z"}
1+
{"translation": "96.11%", "updated_at": "2024-08-25T15:46:59Z"}

howto/regex.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ msgid ""
304304
"(:const:`re.DOTALL`) where it will match even a newline. ``.`` is often "
305305
"used where you want to match \"any character\"."
306306
msgstr ""
307-
"本节的最后一个元字符是 ``.`` 。 它匹配除换行符之外的任何字符,并且有一个可选模式( :const:`re.DOTALL` "
308-
"),在该模式下它甚至可以匹配换行符。 ``.`` 通常用于你想匹配“任何字符”的场景。"
307+
"本节最后要介绍的元字符是 ``.`` 。 它可以匹配除换行符以外的任何字符,并且有一个可选模式( :const:`re.DOTALL` "
308+
"),在该模式下它甚至可以匹配换行符。 ``.`` 通常用于需要匹配“任何字符”的场景。"
309309

310310
#: ../../howto/regex.rst:163
311311
msgid "Repeating Things"
312-
msgstr "重复"
312+
msgstr "重复匹配"
313313

314314
#: ../../howto/regex.rst:165
315315
msgid ""
@@ -319,7 +319,7 @@ msgid ""
319319
"they wouldn't be much of an advance. Another capability is that you can "
320320
"specify that portions of the RE must be repeated a certain number of times."
321321
msgstr ""
322-
"能够匹配各种各样的字符集合是正则表达式可以做到的第一件事,而这是字符串方法所不能做到的。但是,如果正则表达式就只有这么一个附加功能,它很难说的上有多大优势。另一个功能是,你可以指定正则的某部分必须重复一定的次数。"
322+
"正则表达式的第一个优势在于它能够匹配各种各样的字符集合,这是普通字符串方法无法做到的。但是,如果这就是正则表达式的唯一额外功能,那么它也就谈不上有多重大的优势。除此之外,正则表达式还有一个强大的功能:你可以指定正则的某部分必须重复特定次数。"
323323

324324
#: ../../howto/regex.rst:171
325325
msgid ""
@@ -328,15 +328,15 @@ msgid ""
328328
"that the previous character can be matched zero or more times, instead of "
329329
"exactly once."
330330
msgstr ""
331-
"我们先来说说重复元字符 ``*`` 。 ``*`` 并不是匹配一个字面字符 ``'*'`` "
332-
"。实际上,它指定前一个字符可以匹配零次或更多次,而不是只匹配一次。"
331+
"首先,我们来看一个用于重复匹配的元字符 ``*`` 。注意,这里的 ``*`` 并不匹配字面意义上的星号 "
332+
"``'*'``,而是用来指定前面的字符可以重复出现零次或多次,而不是仅仅是恰好出现一次。"
333333

334334
#: ../../howto/regex.rst:175
335335
msgid ""
336336
"For example, ``ca*t`` will match ``'ct'`` (0 ``'a'`` characters), ``'cat'`` "
337337
"(1 ``'a'``), ``'caaat'`` (3 ``'a'`` characters), and so forth."
338338
msgstr ""
339-
"例如,``ca*t`` 将匹配 ``'ct'`` ( 0 个 ``'a'`` )、``'cat'`` ( 1 个 ``'a'`` )、 "
339+
"例如,正则表达式 ``ca*t`` 可以匹配 ``'ct'`` ( 0 个 ``'a'`` )、``'cat'`` ( 1 个 ``'a'`` )、 "
340340
"``'caaat'`` ( 3 个 ``'a'`` )等等。"
341341

342342
#: ../../howto/regex.rst:178

0 commit comments

Comments
 (0)