xsl-list
[Top] [All Lists]

RE: Using Regular Expressions with XSL

2002-11-14 09:23:26
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(_at_)hotmail(_dot_)com]
Sent: Thursday, November 14, 2002 9:55 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Using Regular Expressions with XSL


-----Original Message-----
From: Langston, Doug [mailto:Doug(_dot_)Langston(_at_)fmr(_dot_)com]
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



<Prev in Thread] Current Thread [Next in Thread>