The given source xml is part is <EORI_Number>23 March 2002</EORI_Number>
and applying style sheet that given below
<xsl:analyze-string select="EORI_Number" regex=".*([0-9]+)\s+([A-Z](a-z)+)\s+([0-9]+).*">
<xsl:matching-substring>
one
</xsl:matching-substring>
<xsl:non-matching-substring>
two
</xsl:non-matching-substring>
</xsl:analyze-string>
Its not working. I am a beginner in xslt so any help would be appreciated.
Probably because your regex is incorrect. Try this:
Note: Changed
(a-z)to[a-z]from original regex.