title: in xslt 1.0 if value contains number inside string value
body: <p>I have a complex adress string, or rather different possible formats, which I need to split into road name, house number, floor, position (left,right,middel door) or door/room number</p>
  
  <p>I have managed to do all apart from the last bit, with the pseudo "contains":</p>
  
  <pre><code>&lt;xsl:choose&gt;
                  &lt;xsl:when test="contains(@addressFarLeft, ANY_NUMERIC_VALUE_ANYWHERE)"&gt;
                    &lt;door&gt;NUMERICVALUE&lt;/door&gt;
                  &lt;/xsl:when&gt;
                  &lt;xsl:otherwise&gt;&lt;/xsl:otherwise&gt;
                &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>Im pretty sure I cant just use some form of contains, but what then?</p>
  
  <p>Value is set dynamically, but here are a few possible values:</p>
  
  <pre><code>&lt;xsl:variable name="addressFarLeftValue"&gt;.th.&lt;/xsl:variable&gt; =&gt;
  no numeric value, do nothing
  
  &lt;xsl:variable name="addressFarLeftValue"&gt;.1.&lt;/xsl:variable&gt; =&gt;
     produce:  &lt;door&gt;1&lt;/door&gt;
  
  &lt;xsl:variable name="addressFarLeftValue"&gt;, . tv &lt;/xsl:variable&gt; =&gt;
  no numeric value, do nothing
  
  &lt;xsl:variable name="addressFarLeftValue"&gt;,th, 4.&lt;/xsl:variable&gt; =&gt;
     produce:   &lt;door&gt;1&lt;/door&gt;
  </code></pre>
  
  <p>Any suggestions?</p>