Molko
asked on
XSLT - String ending with a numeric
How do i test if a String ends with a numeric ?
substring takes the last character
the translate maps any digit to nothing
if the last character is a digit, this translate returns a ''
the translate maps any digit to nothing
if the last character is a digit, this translate returns a ''
in XSLT2
<xsl:if test="matches($str, '\d$')" >
...
<xsl:if test="matches($str, '\d$')" >
...
ASKER
Hi
yeah, think i prefer the regex
yeah, think i prefer the regex
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<xsl:if test="translate(substring(
...