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

From: Date: Fri, 09 Apr 2010 07:14:16 +0000
Subject: svn: /phpdoc/fr/trunk/reference/pcre/ pattern.syntax.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-7878@lists.php.net to get a copy of this message
gui Fri, 09 Apr 2010 07:14:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=297739 Log: Fixed build, part 2 Changed paths: U phpdoc/fr/trunk/reference/pcre/pattern.syntax.xml Modified: phpdoc/fr/trunk/reference/pcre/pattern.syntax.xml =================================================================== --- phpdoc/fr/trunk/reference/pcre/pattern.syntax.xml 2010-04-09 06:20:18 UTC (rev 297738) +++ phpdoc/fr/trunk/reference/pcre/pattern.syntax.xml 2010-04-09 07:14:16 UTC (rev 297739) @@ -30,16 +30,16 @@ </para> </section> <section xml:id="regexp.reference.delimiters"> - <title>Delimiters</title> + <title>Délimiteurs</title> <para> - When using the PCRE functions, it is required that the pattern is enclosed - by <emphasis>delimiters</emphasis>. A delimiter can be any non-alphanumeric, - non-backslash, non-whitespace character. + Lors de l'utilisation des fonctions PCRE, il est nécessaire que le motif soit encadré + par des <emphasis>délimiteurs</emphasis>. Un délimiteur peut être n'importe quel caractère + alpha-numérique autre qu'un backslash ou qu'un espace. </para> <para> - Often used delimiters are forward slashes (<literal>/</literal>), hash - signs (<literal>#</literal>) and tildes (<literal>~</literal>). The - following are all examples of valid delimited patterns. + Les délimiteurs les plus courants sont les slashes (<literal>/</literal>), dièses + (<literal>#</literal>) et les tildes (<literal>~</literal>). Les exemples suivants ont + tous des motifs encadrés avec des délimiteurs valides. <informalexample> <programlisting> <![CDATA[ @@ -52,10 +52,9 @@ </informalexample> </para> <para> - If the delimiter needs to be matched inside the pattern it must be - escaped using a backslash. If the delimiter appears often inside the - pattern, it is a good idea to choose another delimiter in order to increase - readability. + Si le délimiteur doit être décrit dans le motif, il doit être échappé avec un backslash. + Si le délimiteur apparait souvent dans le motif, choisir un autre délimiteur est une bonne + idée pour en augmenter la lisibilité. <informalexample> <programlisting> <![CDATA[ @@ -64,26 +63,26 @@ ]]> </programlisting> </informalexample> - The <function>preg_quote</function> function may be used to escape a string - for injection into a pattern and its optional second parameter may be used - to specify the delimiter to be escaped. + La fonction <function>preg_quote</function> peut être utilisée pour échapper une chaine + et l'utiliser dans un motif. Son second paramètre optionnel sert à spécifier le délimiteur + qui doit être échappé. </para> <para> - In addition to the aforementioned delimiters, it is also possible to use - bracket style delimiters where the opening and closing brackets are the - starting and ending delimiter, respectively. + En complément des délimiteurs cités ci-dessus, il est aussi possible d'utiliser des + parenthèses comme délimiteur où les parenthèses ouvrante et fermante sont respectivement + les délimiteurs ouvrant et fermant. <informalexample> <programlisting> <![CDATA[ -{this is a pattern} +{ceci est un motif} ]]> </programlisting> </informalexample> </para> <para> - You may add <link linkend="reference.pcre.pattern.modifiers">pattern - modifiers</link> after the ending delimiter. The following is an example - of case-insensitive matching: + Vous pouvez aussi utiliser des <link linkend="reference.pcre.pattern.modifiers"> + modificateurs de motif</link> après le délimiteur final. L'exemple suivant montre + une correspondance insensible à la casse. <informalexample> <programlisting> <![CDATA[

« previous php.doc.fr (#7878) next »