[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using Regular Expressions with XSL

Subject: RE: Using Regular Expressions with XSL
From: "David Nelson" <David.Nelson@xxxxxxxxxxxxxx>
Date: Thu, 14 Nov 2002 10:23:26 -0600
xslt using regular expressions
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.