<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Regular expression support in comparison for <test>"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=40648#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Regular expression support in comparison for <test>"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=40648">bug 40648</a>
              from <span class="vcard"><a class="email" href="mailto:akira@tagoh.org" title="Akira TAGOH <akira@tagoh.org>"> <span class="fn">Akira TAGOH</span></a>
</span></b>
        <pre>another use case that I'm keen to see is:

<match>
  <edit name="family_copy" mode="assign">
    <name>family</name>
  </edit>
</match>
<match>
  <test name="family_copy" mode="regex">
    <string>[[:space:]]</string>
  </test>
  <edit name="family_copy" mode="regex_replace_all">
    <string>-</string>
  </edit>
</match>
<match>
  <test name="psname" mode="eq" qual="all">
    <string></string>
  </test>
  <edit name="psname" mode="assign">
    <name>family_copy</name>
  </edit>
</match>

I'm expecting with the above rules to replace all of the white spaces to '-'
and set to 'psname' in the pattern if not available.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>