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

Skip to content

Commit e850d51

Browse files
committed
[po] auto sync bot
1 parent 10bb7e9 commit e850d51

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

howto/regex.po

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ msgid ""
169169
"is usually a metacharacter, but inside a character class it's stripped of "
170170
"its special nature."
171171
msgstr ""
172+
"字符类中的元字符不生效。 "
173+
"例如,``[akm$]``将匹配``'a'``,``'k'``、``'m'``或``'$'``中的任意字符;``'$'``通常是一个元字符,但在一个字符类中它被剥夺了特殊性。"
172174

173175
#: ../../howto/regex.rst:97
174176
msgid ""
@@ -179,6 +181,9 @@ msgid ""
179181
"class, it does not have special meaning. For example: ``[5^]`` will match "
180182
"either a ``'5'`` or a ``'^'``."
181183
msgstr ""
184+
"你可以通过以下方式匹配 :dfn:`complementing` 设置的字符类中未列出的字符。这通过包含一个``'^'``作为该类的第一个字符来表示。 "
185+
"例如,``[^5]``将匹配除``'5'``之外的任何字符。 如果插入符出现在字符类的其他位置,则它没有特殊含义。 "
186+
"例如:``[5^]``将匹配``'5'``或``'^'``。"
182187

183188
#: ../../howto/regex.rst:103
184189
msgid ""
@@ -189,13 +194,15 @@ msgid ""
189194
"need to match a ``[`` or ``\\``, you can precede them with a backslash to "
190195
"remove their special meaning: ``\\[`` or ``\\\\``."
191196
msgstr ""
197+
"也许最重要的元字符是反斜杠,``\\``。 "
198+
"与Python字符串文字一样,反斜杠后面可以跟各种字符,以指示各种特殊序列。它也用于转义所有元字符,因此您仍然可以在模式中匹配它们;例如,如果你需要匹配``[``或``\\``,你可以在它们前面加一个反斜杠来移除它们的特殊含义:``\\[``或``\\\\``。"
192199

193200
#: ../../howto/regex.rst:110
194201
msgid ""
195202
"Some of the special sequences beginning with ``'\\'`` represent predefined "
196203
"sets of characters that are often useful, such as the set of digits, the set"
197204
" of letters, or the set of anything that isn't whitespace."
198-
msgstr ""
205+
msgstr "一些以``'\\'``开头的特殊序列表示通常有用的预定义字符集,例如数字集、字母集或任何非空格的集合。"
199206

200207
#: ../../howto/regex.rst:115
201208
msgid ""
@@ -207,6 +214,10 @@ msgid ""
207214
"``\\w`` in a string pattern by supplying the :const:`re.ASCII` flag when "
208215
"compiling the regular expression."
209216
msgstr ""
217+
"让我们举一个例子:``\\w``匹配任何字母数字字符。 "
218+
"如果正则表达式模式以字节类表示,这相当于类``[a-zA-Z0-9_]``。如果正则表达式是一个字符串,``\\w``将匹配由 "
219+
":mod:`unicodedata` 模块提供的Unicode数据库中标记为字母的所有字符。 通过在编译正则表达式时提供 "
220+
":const:`re.ASCII` 标志,可以在字符串模式中使用更为受限制的``\\w``定义。"
210221

211222
#: ../../howto/regex.rst:123
212223
msgid ""
@@ -216,14 +227,16 @@ msgid ""
216227
"Standard Library reference. In general, the Unicode versions match any "
217228
"character that's in the appropriate category in the Unicode database."
218229
msgstr ""
230+
"以下特殊序列列表不完整。 有关 Unicode 字符串模式的序列和扩展类定义的完整列表,请参阅标准库参考中的最后一部分 :ref:`Regular "
231+
"Expression Syntax <re-syntax>` 。通常,Unicode 版本匹配Unicode数据库中相应类别中的任何字符。"
219232

220233
#: ../../howto/regex.rst:131
221234
msgid "``\\d``"
222235
msgstr "``\\d``"
223236

224237
#: ../../howto/regex.rst:131
225238
msgid "Matches any decimal digit; this is equivalent to the class ``[0-9]``."
226-
msgstr ""
239+
msgstr "匹配任何十进制数字;这等价于类``[0-9]``。"
227240

228241
#: ../../howto/regex.rst:134
229242
msgid "``\\D``"
@@ -232,7 +245,7 @@ msgstr "``\\D``"
232245
#: ../../howto/regex.rst:134
233246
msgid ""
234247
"Matches any non-digit character; this is equivalent to the class ``[^0-9]``."
235-
msgstr ""
248+
msgstr "匹配任何非数字字符;这等价于类``[^0-9]``。"
236249

237250
#: ../../howto/regex.rst:138
238251
msgid "``\\s``"
@@ -242,7 +255,7 @@ msgstr "``\\s``"
242255
msgid ""
243256
"Matches any whitespace character; this is equivalent to the class ``[ "
244257
"\\t\\n\\r\\f\\v]``."
245-
msgstr ""
258+
msgstr "匹配任何空白字符;这等价于类 ``[ \\t\\n\\r\\f\\v]``。"
246259

247260
#: ../../howto/regex.rst:142
248261
msgid "``\\S``"
@@ -252,7 +265,7 @@ msgstr "``\\S``"
252265
msgid ""
253266
"Matches any non-whitespace character; this is equivalent to the class ``[^ "
254267
"\\t\\n\\r\\f\\v]``."
255-
msgstr ""
268+
msgstr "匹配任何非空白字符;这相当于类``[^ \\t\\n\\r\\f\\v]``。"
256269

257270
#: ../../howto/regex.rst:146
258271
msgid "``\\w``"

0 commit comments

Comments
 (0)