cvs: phpdoc-it /reference/pcre/functions preg-match-all.xml

From: Date: Mon, 10 Feb 2003 21:05:14 +0000
Subject: cvs: phpdoc-it /reference/pcre/functions preg-match-all.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-211@lists.php.net to get a copy of this message
darvina Mon Feb 10 16:05:14 2003 EDT Modified files: /phpdoc-it/reference/pcre/functions preg-match-all.xml Log: Update to En 1.6 Index: phpdoc-it/reference/pcre/functions/preg-match-all.xml diff -u phpdoc-it/reference/pcre/functions/preg-match-all.xml:1.6 phpdoc-it/reference/pcre/functions/preg-match-all.xml:1.7 --- phpdoc-it/reference/pcre/functions/preg-match-all.xml:1.6 Mon Sep 9 15:47:14 2002 +++ phpdoc-it/reference/pcre/functions/preg-match-all.xml Mon Feb 10 16:05:14 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/pcre.xml, last change in rev 1.1 --> <!-- last change to 'preg-match-all' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.78/EN.1.2 --> <refentry id="function.preg-match-all"> <refnamediv> @@ -21,7 +21,7 @@ La funzione ricerca tutte le espressioni regolari passate nel parametro <parameter>espressione_regolare</parameter> all'interno della stringa <parameter>testo</parameter>. I testi riconosciuti sono posti all'interno della matrice <parameter>TestiRiconosciuti</parameter>, nell'ordine specificato da - <parameter>ordine</parameter>. + <parameter>flags</parameter>. </para> <para> Dopo avere riconosciuto il primo segmento di testo, le ricerche seguenti @@ -46,11 +46,13 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php preg_match_all ("|<[^>]+>(.*)</[^>]+>|U", "<b>example: </b><div align=left>this is a test</div>", $out, PREG_PATTERN_ORDER); print $out[0][0].", ".$out[0][1]."\n"; print $out[1][0].", ".$out[1][1]."\n"; +?> ]]> </programlisting> <para> @@ -80,11 +82,13 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php preg_match_all ("|<[^>]+>(.*)</[^>]+>|U", "<b>example: </b><div align=left>this is a test</div>", $out, PREG_SET_ORDER); print $out[0][0].", ".$out[0][1]."\n"; print $out[1][0].", ".$out[1][1]."\n"; +?> ]]> </programlisting> </informalexample> @@ -136,8 +140,10 @@ <title>Esempio di come ottenere tutti i numeri di telefono da un testo.</title> <programlisting role="php"> <![CDATA[ +<?php preg_match_all ("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", "Call 555-1212 or 1-800-555-1212", $numeri); +?> ]]> </programlisting> </example> @@ -147,6 +153,7 @@ <title>Ricerca di tag HTML</title> <programlisting role="php"> <![CDATA[ +<?php // Il parametro \\2 è un esempio di riferimento all'indietro. Questo dato informa la // libreria pcre che deve considerare il secondo set di parentesi tonde (in questo // caso il testo "([\w]+)"). Il backslash (\) aggiuntivo è reso obbligatorio dall'uso @@ -161,6 +168,7 @@ echo "parte 2: ".$matches[3][$i]."\n"; echo "parte 3: ".$matches[4][$i]."\n\n"; } +?> ]]> </programlisting> </example>

« previous php.doc.it (#211) next »