|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using Regular Expressions with XSL
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: Using Regular Expressions with XSL
>-----Original Message-----
>From: Langston, Doug [mailto:Doug.Langston@xxxxxxx]
>Sent: Tuesday, November 12, 2002 10:09 AM
>Subject: RE: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








