Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c70edd

Browse files
[po] auto sync
1 parent 2a31f16 commit 7c70edd

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

howto/regex.po

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ msgid ""
321321
"they wouldn't be much of an advance. Another capability is that you can "
322322
"specify that portions of the RE must be repeated a certain number of times."
323323
msgstr ""
324-
"能够匹配不同的字符集合是正则表达式可以做的第一件事,这对于字符串可用方法来说是不可能的。 "
325-
"但是,如果这是正则表达式的唯一额外功能,那么它们就不会有太大的优势。 另一个功能是你可以指定正则的某些部分必须重复一定次数。"
324+
"能够匹配各种各样的字符集合是正则表达式可以做到的第一件事,而这是字符串方法所不能做到的。但是,如果正则表达式就只有这么一个附加功能,它很难说的上有多大优势。另一个功能是,你可以指定正则的某部分必须重复一定的次数。"
326325

327326
#: ../../howto/regex.rst:171
328327
msgid ""
@@ -331,16 +330,16 @@ msgid ""
331330
"that the previous character can be matched zero or more times, instead of "
332331
"exactly once."
333332
msgstr ""
334-
"重复中我们要了解的第一个元字符是 ``*``。 ``*`` 与字面字符 ``'*'`` "
335-
"不匹配;相反,它指定前一个字符可以匹配零次或多次,而不是恰好一次。"
333+
"用于重复前面内容的元字符,我们先来说说 ``*`` 。 ``*`` 并不是匹配一个字面字符 ``'*'`` "
334+
"。实际上,它指定前一个字符可以匹配零次或多次,而不是只匹配一次。"
336335

337336
#: ../../howto/regex.rst:175
338337
msgid ""
339338
"For example, ``ca*t`` will match ``'ct'`` (0 ``'a'`` characters), ``'cat'`` "
340339
"(1 ``'a'``), ``'caaat'`` (3 ``'a'`` characters), and so forth."
341340
msgstr ""
342-
"例如,``ca*t`` 将匹配 ``'ct'`` (0个 ``'a'`` 字符),``'cat'`` (1个 ``'a'`` ), "
343-
"``'caaat'`` (3个 ``'a'`` 字符),等等。"
341+
"例如,``ca*t`` 将匹配 ``'ct'``(0 个 ``'a'``)、``'cat'``(1 个 ``'a'``)、 ``'caaat'``(3 "
342+
"``'a'``等等。"
344343

345344
#: ../../howto/regex.rst:178
346345
msgid ""
@@ -349,8 +348,8 @@ msgid ""
349348
"portions of the pattern don't match, the matching engine will then back up "
350349
"and try again with fewer repetitions."
351350
msgstr ""
352-
"类似 ``*`` 这样的重复是 :dfn:`贪婪的`当重复正则时,匹配引擎将尝试尽可能多地重复它。 "
353-
"如果模式的后续部分不匹配,则匹配引擎将回退并以较少的重复次数再次尝试。"
351+
"类似 ``*`` 这样的重复是 :dfn:`贪婪的`当重复正则时,匹配引擎将尝试重复尽可能多的次数。 "
352+
"如果表达式的后续部分不匹配,则匹配引擎将回退并以较少的重复次数再次尝试。"
354353

355354
#: ../../howto/regex.rst:183
356355
msgid ""
@@ -359,8 +358,8 @@ msgid ""
359358
"letters from the class ``[bcd]``, and finally ends with a ``'b'``. Now "
360359
"imagine matching this RE against the string ``'abcbd'``."
361360
msgstr ""
362-
"一个逐步的例子将使这更加明显。 让我们考虑表达式 ``a[bcd]*b``。 这个正则匹配字母 ``'a'``,类 ``[bcd]`` "
363-
"中的零或多个字母,最后以 ``'b'`` 结尾。 现在想象一下这个正则与字符串 ``'abcbd'`` 匹配。"
361+
"通过一个逐步示例更容易理解这一点。让我们分析一下表达式 ``a[bcd]*b`` 。 该表达式首先匹配一个字母 ``'a'`` ,接着匹配字符类 "
362+
"``[bcd]`` 中的零个或更多个字母,最后以一个 ``'b'`` 结尾。 现在想象一下用这个正则来匹配字符串 ``'abcbd'`` 。"
364363

365364
#: ../../howto/regex.rst:189
366365
msgid "Step"
@@ -384,7 +383,7 @@ msgstr "``a``"
384383

385384
#: ../../howto/regex.rst:191
386385
msgid "The ``a`` in the RE matches."
387-
msgstr "正则中的 ``a`` 匹配。"
386+
msgstr "正则中的 ``a`` 匹配成功。"
388387

389388
#: ../../howto/regex.rst:193
390389
msgid "2"
@@ -398,7 +397,7 @@ msgstr "``abcbd``"
398397
msgid ""
399398
"The engine matches ``[bcd]*``, going as far as it can, which is to the end "
400399
"of the string."
401-
msgstr "引擎尽可能多地匹配 ``[bcd]*`` ,直到字符串结束。"
400+
msgstr "引擎尽可能多地匹配 ``[bcd]*`` ,直至字符串末尾。"
402401

403402
#: ../../howto/regex.rst:197
404403
msgid "3"
@@ -412,7 +411,7 @@ msgstr "*失败*"
412411
msgid ""
413412
"The engine tries to match ``b``, but the current position is at the end of "
414413
"the string, so it fails."
415-
msgstr "引擎尝试匹配 ``b`` ,但是当前位置位于字符串结束,所以匹配失败。"
414+
msgstr "引擎尝试匹配 ``b`` ,但是当前位置位于字符串末尾,所以匹配失败。"
416415

417416
#: ../../howto/regex.rst:202
418417
msgid "4"
@@ -424,7 +423,7 @@ msgstr "``abcb``"
424423

425424
#: ../../howto/regex.rst:202
426425
msgid "Back up, so that ``[bcd]*`` matches one less character."
427-
msgstr "回退一次,``[bcd]*`` 少匹配一个字符。"
426+
msgstr "回退,让 ``[bcd]*`` 少匹配一个字符。"
428427

429428
#: ../../howto/regex.rst:205
430429
msgid "5"
@@ -434,7 +433,7 @@ msgstr "5"
434433
msgid ""
435434
"Try ``b`` again, but the current position is at the last character, which is"
436435
" a ``'d'``."
437-
msgstr "再次尝试匹配 ``b`` , 但是当前位置是最后一个字符 ``'d'`` 。"
436+
msgstr "再次尝试匹配 ``b`` , 但是当前位置上的字符是最后一个字符 ``'d'`` 。"
438437

439438
#: ../../howto/regex.rst:209 ../../howto/regex.rst:213
440439
msgid "6"
@@ -446,13 +445,13 @@ msgstr "``abc``"
446445

447446
#: ../../howto/regex.rst:209
448447
msgid "Back up again, so that ``[bcd]*`` is only matching ``bc``."
449-
msgstr "再次回退,所以 ``[bcd]*`` 只匹配 ``bc`` 。"
448+
msgstr "再次回退, ``[bcd]*`` 只匹配 ``bc`` 。"
450449

451450
#: ../../howto/regex.rst:213
452451
msgid ""
453452
"Try ``b`` again. This time the character at the current position is "
454453
"``'b'``, so it succeeds."
455-
msgstr "再试一次 ``b`` 。 这次当前位置的字符是 ``'b'`` ,所以它成功了。"
454+
msgstr "再次尝试匹配 ``b`` 。 这一次当前位置的字符是 ``'b'`` ,所以它成功了。"
456455

457456
#: ../../howto/regex.rst:219
458457
msgid ""
@@ -463,8 +462,9 @@ msgid ""
463462
" ``[bcd]*``, and if that subsequently fails, the engine will conclude that "
464463
"the string doesn't match the RE at all."
465464
msgstr ""
466-
"正则现在已经结束了,它已经匹配了 ``'abcb'``。 这演示了匹配引擎最初如何进行,如果没有找到匹配,它将逐步回退并一次又一次地重试正则的其余部分。"
467-
" 它将回退,直到它为 ``[bcd]*`` 尝试零匹配,如果随后失败,引擎将断定该字符串与正则完全不匹配。"
465+
"此时正则表达式已经到达了尽头,并且匹配到了 ``'abcb'`` 。 "
466+
"这个例子演示了匹配引擎一开始会尽其所能地进行匹配,如果没有找到匹配,它将逐步回退并重试正则的剩余部分,如此往复,直至 ``[bcd]*`` "
467+
"只匹配零次。如果随后的匹配还是失败了,那么引擎会宣告整个正则表达式与字符串匹配失败。"
468468

469469
#: ../../howto/regex.rst:226
470470
msgid ""

0 commit comments

Comments
 (0)