title: How do I use a regular expression in XSLT 1.0?
body: <p>I am using XSLT 1.0.
  My input information may contain these values</p>
  
  <pre><code>&lt;!--case 1--&gt;
  &lt;attribute&gt;123-00&lt;/attribute&gt;
  
  &lt;!--case 2--&gt;
  &lt;attribute&gt;Abc-01&lt;/attribute&gt;
  
  &lt;!--case 3--&gt;
  &lt;attribute&gt;--&lt;/attribute&gt;
  
  &lt;!--case 4--&gt;
  &lt;attribute&gt;Z2-p01&lt;/attribute&gt;
  </code></pre>
  
  <p>I want to find out those string that match the criteria:</p>
  
  <pre><code>if string has at least 1 alphabet AND has at least 1 number,
  then 
  do X processing
  else
  do Y processing
  </code></pre>
  
  <p>In example above, for case 1,2,4 I should be able to do <code>X</code> processing. For case 3, I should be able to do <code>Y</code> processing.</p>
  
  <p>I aim to use a regular expression (in XSLT 1.0).</p>
  
  <p>For all the cases, the attribute can take any value of any length. </p>
  
  <p>I tried use of <code>match</code>, but the processor returned an error.
  I tried use of <code>translate</code> function, but not sure if used the right way.</p>
  
  <p>I am thinking about.</p>
  
  <pre><code>if String matches [a-zA-Z0-9]* 
  then do X processing
  else
  do y processing.
  </code></pre>
  
  <p>How do I implement that using XSLT 1.0 syntax?</p>