Subject: RE: [xsl] check the type of the $pattern argument to a regular expression? From: "Philip Vallone" <philip.vallone@xxxxxxxxxxx> Date: Sat, 14 Apr 2007 08:10:25 -0400 |
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.bryan@xxxxxxxxx] Sent: Friday, April 13, 2007 9:39 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] check the type of the $patter, bryan rasmussen | Thread | Re: [xsl] check the type of the $pa, bryan rasmussen |
RE: [xsl] Xsl:param from PHP to htm, Alan Hale | Date | Re: [xsl] check the type of the $pa, bryan rasmussen |
Month |