<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcre.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.preg-replace.php',
    1 => 'preg_replace',
    2 => 'Rechercher et remplacer par expression rationnelle standard',
  ),
  'up' => 
  array (
    0 => 'ref.pcre.php',
    1 => 'Fonctions PCRE',
  ),
  'prev' => 
  array (
    0 => 'function.preg-quote.php',
    1 => 'preg_quote',
  ),
  'next' => 
  array (
    0 => 'function.preg-replace-callback.php',
    1 => 'preg_replace_callback',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/pcre/functions/preg-replace.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.preg-replace" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">preg_replace</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">preg_replace</span> &mdash; <span class="dc-title">Rechercher et remplacer par expression rationnelle standard</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.preg-replace-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>preg_replace</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span></span> <code class="parameter">$pattern</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span></span> <code class="parameter">$replacement</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span></span> <code class="parameter">$subject</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$limit</code><span class="initializer"> = -1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter reference">&$count</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span></div>

  <p class="para rdfs-comment">
   Analyse <code class="parameter">subject</code> pour trouver l&#039;expression
   rationnelle <code class="parameter">pattern</code> et remplace les
   résultats par <code class="parameter">replacement</code>.
  </p>
  <p class="para">
   Pour faire correspondre une chaîne exacte, plutôt qu&#039;une expression rationnelle, 
   l&#039;utilisation de <span class="function"><a href="function.str-replace.php" class="function">str_replace()</a></span> ou <span class="function"><a href="function.str-ireplace.php" class="function">str_ireplace()</a></span> 
   est recommandée à la place de cette fonction.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.preg-replace-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">pattern</code></dt>
     <dd>
      <p class="para">
       Le masque à chercher. Il peut être une chaîne ou un tableau de chaînes.
      </p>
      <p class="para">
       Plusieurs <a href="reference.pcre.pattern.modifiers.php" class="link">modificateurs PCRE</a>
       sont également disponibles.
      </p>
     </dd>
    
    
     <dt><code class="parameter">replacement</code></dt>
     <dd>
      <p class="para">
       La chaîne ou un tableau de chaînes pour le remplacement.
       Si ce paramètre est une chaîne et le paramètre <code class="parameter">pattern</code>
       est un tableau, tous les masques seront remplacés par cette chaîne.
       Si les paramètres <code class="parameter">pattern</code> et 
       <code class="parameter">replacement</code> sont des tableaux, chaque
       <code class="parameter">pattern</code> sera remplacé par son
       <code class="parameter">replacement</code> associé.
       Si <code class="parameter">replacement</code> a moins d&#039;éléments
       que <code class="parameter">pattern</code>, alors une chaîne vide est
       utilisée pour le reste des valeurs.
      </p>
      <p class="para">
       <code class="parameter">replacement</code> peut contenir des références
       de la forme <code class="literal">\<span class="replaceable">n</span></code> ou
       <code class="literal">$<span class="replaceable">n</span></code>.
       Cette dernière forme est recommandée. Ces références seront remplacées 
       par le texte capturé par la <span class="replaceable">n</span>-ième parenthèse 
       capturante du masque. <span class="replaceable">n</span> peut prendre des 
       valeurs de 0 à 99, et <code class="literal">\0</code> ou <code class="literal">$0</code>, 
       correspondent au texte qui satisfait le masque complet. Les parenthèses
       ouvrantes sont comptées de gauche à droite (en commençant à 1) pour 
       déterminer le numéro de parenthèse capturante.
       Il est à noter que dans les <a href="language.types.string.php" class="link">chaîne de caractères</a> littérales les antislashs doivent
       peut-être être échappés.
      </p>
      <p class="para">
       Lorsque l&#039;on travaille avec un masque de remplacement où une référence arrière 
       est directement suivie par un nombre (c.-à-d. : placer un nombre littéral immédiatement
       après une référence arrière), il n&#039;est pas possible d&#039;utiliser la syntaxe classique
       <code class="literal">\1</code> pour la référence arrière. <code class="literal">\11</code>, par exemple,
       sera confus pour la fonction <span class="function"><strong>preg_replace()</strong></span> dans le sens où
       elle ne saura pas si l&#039;on désire la référence arrière <code class="literal">\1</code> suivie du nombre
       <code class="literal">1</code> ou si l&#039;on désire la référence arrière <code class="literal">\11</code>
       suivie de &quot;rien&quot;. Dans ce cas, la solution est d&#039;utiliser la syntaxe <code class="literal">${1}1</code>.
       Cela créera une référence arrière isolée <code class="literal">$1</code>, suivie du nombre
       littéral <code class="literal">1</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">subject</code></dt>
     <dd>
      <p class="para">
       La chaîne ou le tableau contenant des chaînes à chercher et à remplacer.
      </p>
      <p class="para">
       Si <code class="parameter">subject</code> est un tableau, alors l&#039;opération
       est appliquée à chacun des éléments du tableau, et le tableau est retourné.
      </p>
      <p class="para">
       Si le tableau <code class="parameter">subject</code> est associatif, alors les clés
       seront préservées dans la valeur retournée.
      </p>      
     </dd>
    
    
     <dt><code class="parameter">limit</code></dt>
     <dd>
      <p class="para">
       Le nombre maximal de remplacement pour chaque masque dans
       chaque chaîne <code class="parameter">subject</code>. Par défaut, vaut
       <code class="literal">-1</code> (aucune limite).
      </p>
     </dd>
    
    
     <dt><code class="parameter">count</code></dt>
     <dd>
      <p class="para">
       Si fournie, cette variable contiendra le nombre de remplacements effectués.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.preg-replace-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   <span class="function"><strong>preg_replace()</strong></span> retourne un tableau si le paramètre
   <code class="parameter">subject</code> est un tableau, ou une chaîne sinon.
  </p>
  <p class="para">
   Si des correspondances sont trouvées, le nouveau 
   <code class="parameter">subject</code> sera retourné, sinon
   <code class="parameter">subject</code> sera retourné à l&#039;identique, ou <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
   si une erreur survient.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.preg-replace-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Utiliser l&#039;option &quot;\e&quot; est une erreur ; une <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>
   est émise dans ce cas.
  </p>
  <p class="para">
Si le masque regex passé ne compile pas à une regex valide, une <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> est émise.
</p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.preg-replace-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Utilisation des références arrières avec des littéraux numériques</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$string </span><span style="color: #007700">= </span><span style="color: #DD0000">'April 15, 2003'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$pattern </span><span style="color: #007700">= </span><span style="color: #DD0000">'/(\w+) (\d+), (\d+)/i'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacement </span><span style="color: #007700">= </span><span style="color: #DD0000">'${1}1,$3'</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$pattern</span><span style="color: #007700">, </span><span style="color: #0000BB">$replacement</span><span style="color: #007700">, </span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">April1,2003</pre>
</div>
    </div>
   </div>
  </p>
  <p class="para">
   <div class="example" id="example-2">
    <p><strong>Exemple #2 Utilisation de tableaux indexés avec <span class="function"><strong>preg_replace()</strong></span></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$string </span><span style="color: #007700">= </span><span style="color: #DD0000">'Le renard marron agile saute par dessus le chien paresseux.'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns </span><span style="color: #007700">= array();<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/agile/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/marron/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/renard/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements </span><span style="color: #007700">= array();<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] = </span><span style="color: #DD0000">'grizzly'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] = </span><span style="color: #DD0000">'brun'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #DD0000">'lent'</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$patterns</span><span style="color: #007700">, </span><span style="color: #0000BB">$replacements</span><span style="color: #007700">, </span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Le lent brun grizzly saute par dessus le chien paresseux.</pre>
</div>
    </div>
    <div class="example-contents"><p>
     En triant les masques et les remplacements, il est recommandé d&#039;obtenir le résultat escompté.
    </p></div>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$string </span><span style="color: #007700">= </span><span style="color: #DD0000">'Le renard marron agile saute par dessus le chien paresseux.'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns </span><span style="color: #007700">= array();<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/agile/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/marron/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$patterns</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] = </span><span style="color: #DD0000">'/renard/'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements </span><span style="color: #007700">= array();<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] = </span><span style="color: #DD0000">'grizzly'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] = </span><span style="color: #DD0000">'brun'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$replacements</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #DD0000">'lent'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">ksort</span><span style="color: #007700">(</span><span style="color: #0000BB">$patterns</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">ksort</span><span style="color: #007700">(</span><span style="color: #0000BB">$replacements</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$patterns</span><span style="color: #007700">, </span><span style="color: #0000BB">$replacements</span><span style="color: #007700">, </span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Le grizzly brun lent saute par dessus le chien paresseux.</pre>
</div>
    </div>
   </div>
  </p>
  <p class="para">
   <div class="example" id="example-3">
    <p><strong>Exemple #3 Remplacement de plusieurs valeurs simultanément</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$patterns </span><span style="color: #007700">= array (</span><span style="color: #DD0000">'/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/'</span><span style="color: #007700">,<br />                   </span><span style="color: #DD0000">'/^\s*{(\w+)}\s*=/'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$replace </span><span style="color: #007700">= array (</span><span style="color: #DD0000">'\3/\4/\1\2'</span><span style="color: #007700">, </span><span style="color: #DD0000">'$\1 ='</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$patterns</span><span style="color: #007700">, </span><span style="color: #0000BB">$replace</span><span style="color: #007700">, </span><span style="color: #DD0000">'{startDate} = 1999-5-27'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">$startDate = 5/27/1999</pre>
</div>
    </div>
   </div>
  </p>
  <p class="para">
   <div class="example" id="example-4">
    <p><strong>Exemple #4 Suppression des espaces</strong></p>
    <div class="example-contents"><p>
     Cet exemple supprime les espaces en trop dans une chaîne.
    </p></div>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$str </span><span style="color: #007700">= </span><span style="color: #DD0000">'foo   o'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$str </span><span style="color: #007700">= </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/\s\s+/'</span><span style="color: #007700">, </span><span style="color: #DD0000">' '</span><span style="color: #007700">, </span><span style="color: #0000BB">$str</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">// Affichera 'foo o'<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">$str</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
  <p class="para">
   <div class="example" id="example-5">
    <p><strong>Exemple #5 Utilisation du paramètre <code class="parameter">count</code></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$count </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br /><br />echo </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'/\d/'</span><span style="color: #007700">, </span><span style="color: #DD0000">'/\s/'</span><span style="color: #007700">), </span><span style="color: #DD0000">'*'</span><span style="color: #007700">, </span><span style="color: #DD0000">'xp 4 to'</span><span style="color: #007700">, -</span><span style="color: #0000BB">1 </span><span style="color: #007700">, </span><span style="color: #0000BB">$count</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$count</span><span style="color: #007700">; </span><span style="color: #FF8000">//3<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">xp***to
3</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.preg-replace-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Lors de l&#039;utilisation des tableaux avec les paramètres
    <code class="parameter">pattern</code> et
    <code class="parameter">replacement</code>, les clés sont traitées
    dans l&#039;ordre dans lequel elles apparaissent dans le tableau.
    Ce <em>n&#039;est pas forcément</em> la même chose que
    l&#039;ordre des index numériques. Lors de l&#039;utilisation des index pour
    identifier quel <code class="parameter">pattern</code> doit être
    remplacé par quel <code class="parameter">replacement</code>, il est
    recommandé de faire un tri <span class="function"><a href="function.ksort.php" class="function">ksort()</a></span> sur chaque
    tableau avant de faire appel à <span class="function"><strong>preg_replace()</strong></span>.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Quand <code class="parameter">pattern</code> et <code class="parameter">replacement</code>
    sont des tableaux, les règles de correspondance fonctionneront de
    manière séquentielle. C&#039;est-à-dire que la deuxième paire
    <code class="parameter">pattern</code>/<code class="parameter">replacement</code>
    opérera sur la chaîne de caractères qui résulte de la première paire
    <code class="parameter">pattern</code>/<code class="parameter">replacement</code>,
    et non sur la chaîne originale. Pour simuler des remplacements
    fonctionnant en parallèle, comme l&#039;échange de deux valeurs, remplacez un
    motif par un substitut intermédiaire, puis dans une paire ultérieure,
    remplacez ce placeholder intermédiaire par le remplacement souhaité.
   </p>
   <div class="informalexample">
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$p </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'/a/'</span><span style="color: #007700">, </span><span style="color: #DD0000">'/b/'</span><span style="color: #007700">, </span><span style="color: #DD0000">'/c/'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$r </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'b'</span><span style="color: #007700">, </span><span style="color: #DD0000">'c'</span><span style="color: #007700">, </span><span style="color: #DD0000">'d'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$p</span><span style="color: #007700">, </span><span style="color: #0000BB">$r</span><span style="color: #007700">, </span><span style="color: #DD0000">'a'</span><span style="color: #007700">));<br /></span><span style="color: #FF8000">// prints d<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p></blockquote>  
 </div>


 <div class="refsect1 seealso" id="refsect1-function.preg-replace-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="pcre.pattern.php" class="link">Masques PCRE</a></li>
    <li><span class="function"><a href="function.preg-quote.php" class="function" rel="rdfs-seeAlso">preg_quote()</a> - Protection des caract&egrave;res sp&eacute;ciaux des expressions r&eacute;guli&egrave;res</span></li>
    <li><span class="function"><a href="function.preg-filter.php" class="function" rel="rdfs-seeAlso">preg_filter()</a> - Recherche et remplace avec une expression rationnelle</span></li>
    <li><span class="function"><a href="function.preg-match.php" class="function" rel="rdfs-seeAlso">preg_match()</a> - Effectue une recherche de correspondance avec une expression rationnelle standard</span></li>
    <li><span class="function"><a href="function.preg-replace-callback.php" class="function" rel="rdfs-seeAlso">preg_replace_callback()</a> - Rechercher et remplacer par expression rationnelle standard en utilisant une fonction de callback</span></li>
    <li><span class="function"><a href="function.preg-split.php" class="function" rel="rdfs-seeAlso">preg_split()</a> - &Eacute;clate une cha&icirc;ne par expression rationnelle</span></li>
    <li><span class="function"><a href="function.preg-last-error.php" class="function" rel="rdfs-seeAlso">preg_last_error()</a> - Retourne le code erreur de la derni&egrave;re expression PCRE ex&eacute;cut&eacute;e</span></li>
    <li><span class="function"><a href="function.str-replace.php" class="function" rel="rdfs-seeAlso">str_replace()</a> - Remplace toutes les occurrences dans une cha&icirc;ne</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>