<xsl:template match="al">
<xsl:variable name='txt' select="./text()"/>
<xsl:variable name='re2'
select="concat('^(', '2\.)', '\s+(.*)$')"
as="xs:string"/>
<xsl:if test="matches($txt, $re2)">
<xsl:text>MATCH</xsl:text>
</xsl:if>
<xsl:analyze-string select="$txt" regex="$re2" >