<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "fr"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "reference"/><meta name = "abstract" content = "Les expressions régulières peuvent être utilisées dans les ateliers Filters et la fenêtre de recherche, ainsi que pour le paramètre avancé DisableMatchingProperties. Cette rubrique répertorie la syntaxe d'expression régulière et les abréviations."/><meta name = "description" content = "Les expressions régulières peuvent être utilisées dans les ateliers Filters et la fenêtre de recherche, ainsi que pour le paramètre avancé DisableMatchingProperties. Cette rubrique répertorie la syntaxe d'expression régulière et les abréviations."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "cps-r-ReferenceInformation-RegularExpressionSyntax"/><meta name = "DC.language" content = "fr"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Informations de référence : Syntaxe d'expression régulière</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "cps-r-ReferenceInformation-RegularExpressionSyntax">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Informations de référence : Syntaxe d'expression régulière</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3" colspan = "2"><table class = "DocThemeIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
    <span class = "shortdesc">Les expressions régulières peuvent être utilisées dans les ateliers Filters et la fenêtre de recherche, ainsi que pour le paramètre avancé <span class = "ph uicontrol">DisableMatchingProperties</span>. Cette rubrique répertorie la syntaxe d'expression régulière et les abréviations.</span>

  </p>
<p>Cette page explique: </p><ul><li><a href = "#r-RegularExpressionSyntax" id = "toc_rg" title = "Ce tableau répertorie les méta-caractères qui peuvent être utilisés en tant qu'expressions régulières.">Syntaxe d'expression régulière</a></li><li><a href = "#r-Abbreviations" id = "toc_rg" title = "Ce tableau répertorie les abréviations prises en charge,\d par exemple au lieu de [0-9].">Abréviations</a></li></ul>
</p></td></tr></table></td></tr></table>
  

  
  <article class = "topic reference nested1" aria-labelledby = "ariaid-title2" id = "r-RegularExpressionSyntax">
    <h2 class = "title topictitle2">Syntaxe d'expression régulière</h2>

    
    <div class = "body refbody"><p class = "abstract">
      <span class = "shortdesc">Ce tableau répertorie les méta-caractères qui peuvent être utilisés en tant qu'expressions régulières.</span>

    </p>

      <table class = "table frame-none"><caption/><colgroup><col style = "width:50%"/><col style = "width:50%"/></colgroup><thead class = "thead">
            <tr class = "row">
              <th class = "entry" id = "r-RegularExpressionSyntax__entry__1">Méta-caractère</th>
              <th class = "entry" id = "r-RegularExpressionSyntax__entry__2">Signification</th>
            </tr>
          </thead><tbody class = "tbody">
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">.</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Fait correspondre n'importe quel caractère.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">[ ]</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indique une classe de caractères. Correspond à n'importe quel caractère entre crochets (<kbd class = "ph userinput userinput">[abc]</kbd> par exemple correspond à "a", "b" et "c").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">^</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Si ce méta-caractère apparaît au début d'une classe de caractères, il exclut la classe de caractères. Une classe de caractères exclue correspond à n'importe quel caractère à l'exception de ceux situés entre crochets (<kbd class = "ph userinput userinput">[^abc]</kbd> par exemple correspond à tous les caractères sauf "a", "b" et "c").<p>Si ^ se trouve au début de l'expression régulière, il correspond au début de l'entrée (par exemple<kbd class = "ph userinput userinput">^[abc]</kbd> correspondra uniquement à une entrée commençant par "a", "b" ou "c").</p></td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">-</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Dans une classe de caractères, indique une plage de caractères (<kbd class = "ph userinput userinput">[0-9]</kbd> par exemple correspond à un chiffre compris entre "0" à "9").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">?</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indique que l'expression précédente est facultative : elle fait correspondre une fois ou pas du tout (par exemple, <kbd class = "ph userinput userinput">[0-9][0-9]?</kbd> correspond à "2" et "12").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">+</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indique que l'expression précédente correspond une ou plusieurs fois (<kbd class = "ph userinput userinput">[0-9]+</kbd> par exemple correspond à "1", "13", "456", etc.).</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">*</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indique que l'expression précédente fait correspondre zéro ou plusieurs fois.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">??, +?, *?</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Versions minimales des correspondances ?, + et *. Elles font correspondre le moins possible, contrairement aux versions "greedy" qui font correspondre le plus possible (par exemple, pour l'entrée "&lt;abc&gt;&lt;def&gt;", <kbd class = "ph userinput userinput">&lt;.*?&gt;</kbd> correspond à "&lt;abc&gt;" tandis que <kbd class = "ph userinput userinput">&lt;.*&gt;</kbd> correspond à "&lt;abc&gt;&lt;def&gt;").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">( )</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Opérateur de regroupement. Exemple : <kbd class = "ph userinput userinput">(\d+,)*\d+</kbd> correspond à une liste de nombres séparés par des virgules (par exemple, "1" ou "1,23,456").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">{ }</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indique un groupe de correspondance.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">\</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">
                <p>Caractère d'échappement : interprète le caractère suivant littéralement (<kbd class = "ph userinput userinput">[0-9]+</kbd> par exemple correspond à un ou plusieurs chiffres, mais<kbd class = "ph userinput userinput">[0-9]\+</kbd> correspond à un chiffre suivi d'un signe plus). Egalement utilisé pour les abréviations (<kbd class = "ph userinput userinput">\a</kbd> par exemple pour tout caractère alphanumérique ; voir le tableau suivant).</p>
                <p>Si \ est suivi par un nombre n, il fait correspondre le nème groupe de correspondance (à partir de 0). Exemple : <kbd class = "ph userinput userinput">&lt;{.*?}&gt;.*&lt;/\0&gt;</kbd> correspond à "&lt;head&gt;Contents&lt;/head&gt;".</p>
              </td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">$</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">A la fin d'une expression régulière, ce caractère correspond à la fin de l'entrée (<kbd class = "ph userinput userinput">[0-9]$</kbd> par exemple correspond à un chiffre à la fin de l'entrée).</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">|</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Opérateur d'alternance : sépare deux expressions, dont l'une correspond exactement (<kbd class = "ph userinput userinput">T|the</kbd> par exemple correspond à "Le" ou "le").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">!</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Opérateur de négation : l'expression suivant ! ne correspond pas à l'entrée (<kbd class = "ph userinput userinput">a!b</kbd> par exemple correspond à "a" non suivi de "b").</td>
            </tr>
          </tbody></table>
    </div>

  </article>
  <article class = "topic reference nested1" aria-labelledby = "ariaid-title3" id = "r-Abbreviations">
    <p><map name = "FPMap1"><area href = "#hj-top" title = "Retour au haut de la page" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title topictitle2">Abréviations</h2>

    
    <div class = "body refbody"><p class = "abstract">
      <span class = "shortdesc">Ce tableau répertorie les abréviations prises en charge,<kbd class = "ph userinput userinput">\d</kbd> par exemple au lieu de <kbd class = "ph userinput userinput">[0-9]</kbd>.</span>

    </p>

      <table class = "table frame-none"><caption/><colgroup><col style = "width:50%"/><col style = "width:50%"/></colgroup><thead class = "thead">
            <tr class = "row">
              <th class = "entry" id = "r-Abbreviations__entry__1">Abréviation</th>
              <th class = "entry" id = "r-Abbreviations__entry__2">Fait correspondre</th>
            </tr>
          </thead><tbody class = "tbody">
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\a</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">N'importe quel caractère alphanumérique : ([a-zA-Z0-9])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\b</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Espace (vide) : ([ \\t])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\c</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">N'importe quel caractère alphabétique : ([a-zA-Z])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\d</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">N'importe quel chiffre décimal : ([0-9])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\h</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">N'importe quel chiffre hexadécimal : ([0-9a-fA-F])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\n</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Saut de ligne : (\r|(\r?\n))</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\q</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Une chaîne entre guillemets : (\"[^\"]*\")|(\'[^\']*\')</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\w</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Un mot simple : ([a-zA-Z]+)</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\z</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Un nombre entier : ([0-9]+)</td>
            </tr>
          </tbody></table>
    </div>

  </article>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
