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

Re: analyze-string help?

Subject: Re: analyze-string help?
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Sun, 10 Jun 2012 12:04:58 -0400
Re:  analyze-string help?
> thanks, I had thought there might be a need to escape the dash, but
> when I first placed it in the pattern I thought it worked. I think
> maybe it worked because I had it at the end of the pattern and then
> later added additional characters. So I think I went from
>   [A-Za-z0-9 -]
> to this
>   [A-Za-z0-9 -,./]

It was accidental? And here I thought it was a clever way to catch
gnarly characters. The hyphen in the 2nd regexp means "from space
(U+0020) to comma (U+002C)", i.e. expresses a range that matches the
same characters
  [ !"#$%&'()*+,]
matches. Many of these characters are a pain to type into an XSLT
regexp, and thus a range like this seemed like a nice way to catch
them.

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.