Hi Bryan,
I use the mactches function:
matches(string,pattern)
For example the following checks for a two digit pattern.
<xsl:if test="matches($input,'\d{2}')>
....do somthing
</xsl:if>
Regards,
Phil
-----Original Message-----
From: bryan rasmussen [mailto:rasmussen(_dot_)bryan(_at_)gmail(_dot_)com]
Sent: Friday, April 13, 2007 9:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] check the type of the $pattern argument to a regular
expression?
Hi,
I would like to check the that the $pattern argument to a regular
expression in fact follows regular expression rules, since regex is
not castable I guess the only way to do this would be to use regular
expressions and perhaps a for-each to check that the $pattern argument
conforms?
Cheers,
Bryan Rasmussen
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--