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

Skip to content

Commit f14763a

Browse files
committed
match.groupdict.start.end
1 parent 550771d commit f14763a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

library/re.po

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
14-
"PO-Revision-Date: 2020-05-24 23:07+0200\n"
14+
"PO-Revision-Date: 2020-05-24 23:13+0200\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -2071,6 +2071,10 @@ msgid ""
20712071
"by the subgroup name. The *default* argument is used for groups that did "
20722072
"not participate in the match; it defaults to ``None``. For example::"
20732073
msgstr ""
2074+
"Devuelve un diccionario que contiene todos los subgrupos *nombrados* de la "
2075+
"coincidencia, tecleado por el nombre del subgrupo. El argumento *por "
2076+
"defecto* se usa para los grupos que no participaron en la coincidencia; por "
2077+
"defecto es ``None``. Por ejemplo::"
20742078

20752079
#: ../Doc/library/re.rst:1262
20762080
msgid ""
@@ -2080,6 +2084,12 @@ msgid ""
20802084
"object *m*, and a group *g* that did contribute to the match, the substring "
20812085
"matched by group *g* (equivalent to ``m.group(g)``) is ::"
20822086
msgstr ""
2087+
"Devuelve los índices del comienzo y el final de la subcadena coincidiendo "
2088+
"con el *group*; el *group* por defecto es cero (es decir, toda la subcadena "
2089+
"coincidente). Devuelve ``-1`` si *grupo* existe pero no ha contribuido a la "
2090+
"coincidencia. Para un objeto coincidente *m*, y un grupo *g* que sí "
2091+
"contribuyó a la coincidencia, la subcadena coincidente con el grupo *g* "
2092+
"(equivalente a ``m.group(g)``) es ::"
20832093

20842094
#: ../Doc/library/re.rst:1270
20852095
msgid ""
@@ -2088,10 +2098,17 @@ msgid ""
20882098
"start(0)`` is 1, ``m.end(0)`` is 2, ``m.start(1)`` and ``m.end(1)`` are both "
20892099
"2, and ``m.start(2)`` raises an :exc:`IndexError` exception."
20902100
msgstr ""
2101+
"Notar que ``m.start(group)`` será igual a ``m.end(group)`` si *group* "
2102+
"coincidió con una cadena nula. Por ejemplo, después de ``m = re."
2103+
"search('b(c?)', 'cba')``, ``m.start(0)`` es 1, ``m.end(0)`` es 2, ``m."
2104+
"start(1)`` y ``m.end(1)`` son ambos 2, y ``m.start(2)`` produce una "
2105+
"excepción :exc:`IndexError`."
20912106

20922107
#: ../Doc/library/re.rst:1275
20932108
msgid "An example that will remove *remove_this* from email addresses::"
20942109
msgstr ""
2110+
"Un ejemplo que eliminará *remove_this* (\"quita esto\") de las direcciones "
2111+
"de correo electrónico::"
20952112

20962113
#: ../Doc/library/re.rst:1285
20972114
msgid ""

0 commit comments

Comments
 (0)