Subject: RE: [xsl] Using Regular Expressions with XSL From: "David Nelson" <David.Nelson@xxxxxxxxxxxxxx> Date: Thu, 14 Nov 2002 10:23:26 -0600 |
this is way off topic but here's the javascript for replace... var test = "hey'"; var exp = new RegExp("'","g"); test = test.replace(exp,"!"); -----Original Message----- From: Jai Jeffryes [mailto:jaiprog@xxxxxxxxxxx] Sent: Thursday, November 14, 2002 9:55 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Using Regular Expressions with XSL >-----Original Message----- >From: Langston, Doug [mailto:Doug.Langston@xxxxxxx] >Sent: Tuesday, November 12, 2002 10:09 AM >Subject: RE: [xsl] Using Regular Expressions with XSL > > >Is there a way to use regular expressions with XSLT? Try http://exslt.org/regexp/index.html The replace function implemented in JavaScript is not robust. You can't use an RE that contains a single-quote. (At least I haven't figured out how to do it.) Maybe I'll get around to finding an answer, post it, and become famous. Jai Jeffryes _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Using Regular Expressions, Jai Jeffryes | Thread | Re: [xsl] Using Regular Expressions, David Carlisle |
Re: [xsl] copy-of select all attrib, Ritu | Date | RE: [xsl] displaying xslt using xsl, Andrew Welch |
Month |