svn: /phpdoc/es/trunk/reference/pcre/ pattern.syntax.xml

From: Date: Thu, 29 Jul 2010 05:56:06 +0000
Subject: svn: /phpdoc/es/trunk/reference/pcre/ pattern.syntax.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-3000@lists.php.net to get a copy of this message
seros Thu, 29 Jul 2010 05:56:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=301676 Log: Traducción Changed paths: U phpdoc/es/trunk/reference/pcre/pattern.syntax.xml Modified: phpdoc/es/trunk/reference/pcre/pattern.syntax.xml =================================================================== --- phpdoc/es/trunk/reference/pcre/pattern.syntax.xml 2010-07-29 05:33:11 UTC (rev 301675) +++ phpdoc/es/trunk/reference/pcre/pattern.syntax.xml 2010-07-29 05:56:06 UTC (rev 301676) @@ -1299,11 +1299,11 @@ <para> A veces es necesario tener múltiples coincidencias, pero alternando - subgrupos en una expresión regular. Normalmente, each of these would be given - their own backreference number even though only one of them would ever - possibly match. To overcome this, the <literal>(?|</literal> syntax allows - having duplicate numbers. Consider the following regex matched against the - string <literal>Sunday</literal>: + subgrupos en una expresión regular. Normalmente, a cada subgrupo se le asignaría + su propio número de retro-referencia incluso si sólo uno de ellos coincidiera. + Para superar esto, la sintaxis <literal>(?|</literal> permite + tener números duplicados. Considere la siguiente expresión regular comparada con la + cadena <literal>Sunday</literal>: </para> <informalexample> @@ -1313,10 +1313,10 @@ </informalexample> <para> - Here <literal>Sun</literal> is stored in backreference 2, while - backreference 1 is empty. Matching yields <literal>Sat</literal> in - backreference 1 while backreference 2 does not exist. Changing the pattern - to use the <literal>(?|</literal> fixes this problem: + Aquí <literal>Sun</literal> se guarda en la retro-referencia 2, mientras + que la retro-referencia 1 está vacía. La comparación cede <literal>Sat</literal> a la + retro-referncia 1 mientras que la retro-referncia 2 no existe. Cambiar el patrón + para usar <literal>(?|</literal> corrige este problema: </para> <informalexample> @@ -1326,8 +1326,8 @@ </informalexample> <para> - Using this pattern, both <literal>Sun</literal> and <literal>Sat</literal> - would be stored in backreference 1. + Al usar este patrón, tanto <literal>Sun</literal> como <literal>Sat</literal> + serían almacenados en la retro-referencia 1. </para> </section>

« previous php.doc.es (#3000) next »