<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "it"><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 = "È possibile utilizzare espressioni regolari nel workshop Filtri e nel pannello Ricerca, nonché nell'impostazione avanzata DisableMatchingProperties. Questo argomento descrive la sintassi e le abbreviazioni delle espressioni regolari."/><meta name = "description" content = "È possibile utilizzare espressioni regolari nel workshop Filtri e nel pannello Ricerca, nonché nell'impostazione avanzata DisableMatchingProperties. Questo argomento descrive la sintassi e le abbreviazioni delle espressioni regolari."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "cps-r-ReferenceInformation-RegularExpressionSyntax"/><meta name = "DC.language" content = "it"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Informazioni di riferimento: Sintassi delle espressioni regolari</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>Informazioni di riferimento: Sintassi delle espressioni regolari</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">È possibile utilizzare espressioni regolari nel workshop Filtri e nel pannello Ricerca, nonché nell'impostazione avanzata <span class = "ph uicontrol">DisableMatchingProperties</span>. Questo argomento descrive la sintassi e le abbreviazioni delle espressioni regolari.</span>

  </p>
<p>Questa pagina spiega: </p><ul><li><a href = "#r-RegularExpressionSyntax" id = "toc_rg" title = "Questa tabella contiene l'elenco dei metacaratteri che si possono utilizzare come espressioni regolari.">Sintassi delle espressioni regolari</a></li><li><a href = "#r-Abbreviations" id = "toc_rg" title = "In questa tabella sono elencate le abbreviazioni supportate, ad esempio \d invece di [0-9].">Abbreviazioni</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">Sintassi delle espressioni regolari</h2>

    
    <div class = "body refbody"><p class = "abstract">
      <span class = "shortdesc">Questa tabella contiene l'elenco dei metacaratteri che si possono utilizzare come espressioni regolari.</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">Metacarattere</th>
              <th class = "entry" id = "r-RegularExpressionSyntax__entry__2">Significato</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">Verifica un carattere qualsiasi.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">[ ]</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indica una classe di caratteri. Verifica i caratteri all'interno delle parentesi (ad esempio, <kbd class = "ph userinput userinput">[abc]</kbd> verifica "a", "b" e "c").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">^</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Se compare all'inizio di una classe di caratteri, questo metacarattere nega la classe di caratteri. Una classe di caratteri negata verifica qualsiasi carattere eccetto quelli all'interno delle parentesi (ad esempio, <kbd class = "ph userinput userinput">[^abc]</kbd> verifica tutti i caratteri eccetto "a", "b" e "c").<p>Se ^ è all'inizio dell'espressione regolare, verifica l'inizio dell'input (ad esempio, <kbd class = "ph userinput userinput">^[abc]</kbd> verifica solo l'input che inizia con "a", "b" o "c").</p></td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">-</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">In una classe di caratteri, indica un intervallo di caratteri (ad esempio, <kbd class = "ph userinput userinput">[0-9]</kbd> verifica le cifre da "0" a "9").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">?</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Indica che l'espressione precedente è opzionale: verifica uno solo o nessun carattere (ad esempio, <kbd class = "ph userinput userinput">[0-9][0-9]?</kbd> verifica "2" e "12").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">+</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Verifica una o più ripetizioni dei caratteri nell'espressione precedente (ad esempio, <kbd class = "ph userinput userinput">[0-9]+</kbd> verifica "1", "13", "456" e così via).</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">*</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Verifica più ripetizioni dei caratteri o nessun carattere nell'espressione regolare che lo precede.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">??, +?, *?</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Versioni non greedy di ?, + e *. Viene verificato il minor numero di corrispondenze possibili, a differenza delle versioni greedy che ne verificano il maggior numero possibile (ad esempio, nella riga "&lt;abc&gt;&lt;def&gt;", <kbd class = "ph userinput userinput">&lt;.*?&gt;</kbd> verifica "&lt;abc&gt;", mentre <kbd class = "ph userinput userinput">&lt;.*&gt;</kbd> verifica "&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">Operatore di raggruppamento. Esempio: <kbd class = "ph userinput userinput">(\d+,)*\d+</kbd> verifica un elenco di numeri separati da virgola (ad esempio, '1' o '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">Indica un gruppo di corrispondenze da verificare.</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">\</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">
                <p>Carattere di escape: interpreta letteralmente il carattere successivo (ad esempio, <kbd class = "ph userinput userinput">[0-9]+</kbd> verifica una o più cifre, ma <kbd class = "ph userinput userinput">[0-9]\+</kbd> verifica una cifra seguita da un carattere più). Utilizzato anche per le abbreviazioni (ad esempio, <kbd class = "ph userinput userinput">\a</kbd> per qualsiasi carattere alfanumerico; vedere la tabella seguente).</p>
                <p>Se \ è seguito da un numero n, verifica il gruppo di n corrispondenze (partendo da 0). Esempio: <kbd class = "ph userinput userinput">&lt;{.*?}&gt;.*&lt;/\0&gt;</kbd> verifica '&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">Alla fine di un'espressione regolare, questo carattere corrisponde alla fine dell'input (ad esempio, <kbd class = "ph userinput userinput">[0-9]$</kbd> corrisponde a una cifra alla fine dell'input).</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">|</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Operatore di alternanza: separa due espressioni, una delle quali corrisponde esattamente (ad esempio, <kbd class = "ph userinput userinput">T|the</kbd> verifica "The" o "the").</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__1">!</td>
              <td class = "entry" headers = "r-RegularExpressionSyntax__entry__2">Operatore di negazione: l'espressione che segue ! non corrisponde all'input (ad esempio, <kbd class = "ph userinput userinput">a!b</kbd> verifica 'a' non seguito da '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 = "Torna a inizio pagina" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title topictitle2">Abbreviazioni</h2>

    
    <div class = "body refbody"><p class = "abstract">
      <span class = "shortdesc">In questa tabella sono elencate le abbreviazioni supportate, ad esempio <kbd class = "ph userinput userinput">\d</kbd> invece di <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">Abbreviazione</th>
              <th class = "entry" id = "r-Abbreviations__entry__2">Verifica</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">Qualsiasi carattere alfanumerico: ([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">Delimitatore di parola (spazio): ([ \\t])</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\c</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Qualsiasi carattere alfabetico: ([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">Qualsiasi cifra decimale: ([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">Qualsiasi cifra esadecimale: ([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">A capo: (\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">Una stringa tra apici: (\"[^\"]*\")|(\'[^\']*\')</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "r-Abbreviations__entry__1">\w</td>
              <td class = "entry" headers = "r-Abbreviations__entry__2">Una parola semplice: ([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 numero intero: ([0-9]+)</td>
            </tr>
          </tbody></table>
    </div>

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