<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>regex_replace - Hermes</title>
    <link>https://hermes.insa-strasbourg.fr/fr/setup/configuration/plugins/attributes/regex_replace/</link>
    <description>Description Ce plugin permet d’effectuer un remplacement dans une chaîne à l’aide de l’expression régulière spécifiée.&#xA;Configuration Rien à configurer pour le plugin.&#xA;hermes: plugins: attributes: regex_replace: Utilisation regex_replace(value: str, pattern: str, replacement: str, ignorecase: bool = False, multiline: bool = False, count: int = 0, mandatory_count: int = 0) → str Comme ce plugin n’est qu’une adaptation du filtre regex_replace_filter d’Ansible, vous pouvez également consulter sa documentation.&#xA;# Sera &#39;able&#39; regex_result: &#34;{{ &#39;ansible&#39; | regex_replace(&#39;^a.*i(.*)$&#39;, &#39;a\\1&#39;) }}&#34; # Sera &#39;#CAR\n#tar\nfoo\n#bar\n&#39; regex_result: &#34;{{ &#39;CAR\ntar\nfoo\nbar\n&#39; | regex_replace(&#39;^(.ar)$&#39;, &#39;#\\1&#39;, multiline=True, ignorecase=True) }}&#34; # Il est possible d&#39;appliquer la méthode à une liste de chaines. Prenons LDAP_PASSWORD_HASHES qui contient une liste de hachages de mots de passe LDAP : # LDAP_PASSWORD_HASHES: # - &#34;{SMD5}NGnIxNg+ZqB3XwhQK/jCRDWWpUQYVbwg&#34; # - &#34;{SSHA}9u8ZbEbeLPLI2f4isG7YjJsz6sfonjQAfbbadQ==&#34; # - &#34;{SSHA256}l0rZ10MhH6jKGogg2qFvCdiNAqkKVH9OuL0R3FgWRrV4mIaYM2cnYQ==&#34; # - &#34;{SSHA512}zKR46tmGg0NKq1FdkmLGZCqXqfnApvFRHSTW4H0Sem9zJH66mgZ6/aB/aypGX+dLAI02akd9lZbplX6y0Typzzir8RIKh6cw,&#34; # Supprime le préfixe entre accolades indiquant le type de hachage. # regex_results: # - &#34;NGnIxNg+ZqB3XwhQK/jCRDWWpUQYVbwg&#34; # - &#34;9u8ZbEbeLPLI2f4isG7YjJsz6sfonjQAfbbadQ==&#34; # - &#34;l0rZ10MhH6jKGogg2qFvCdiNAqkKVH9OuL0R3FgWRrV4mIaYM2cnYQ==&#34; # - &#34;zKR46tmGg0NKq1FdkmLGZCqXqfnApvFRHSTW4H0Sem9zJH66mgZ6/aB/aypGX+dLAI02akd9lZbplX6y0Typzzir8RIKh6cw,&#34; regex_results: &#34;{{ LDAP_PASSWORD_HASHES | map(&#39;regex_replace&#39;, &#39;^{[^}]+}(.*)$&#39;, &#39;\\1&#39;) | list }}&#34;</description>
    <generator>Hugo</generator>
    <language>fr-FR</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://hermes.insa-strasbourg.fr/fr/setup/configuration/plugins/attributes/regex_replace/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>