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

Re: Fun with regular expressions


expressions pulling teeth


Robin Berjon wrote:

> Max Chappell wrote:
>
>> Another piece of advice is to use nested brackets such as: 
>> "[a-zA-Z-[ABC]]" (Use any letters except AB or C).
>> Along these lines I've tried:
>> "[.-[NaN]]*" - far from working...
>
>
> Does something like (.-[Na])+ work? I'm unsure that . is a proper 
> character class that's subject to substraction.
>        

        The type declaration is based upon xs:double, restricting 
further by the use of pattern should mean the two patterns are ANDed 
together. I was working
        on a vague assumption that . works like a 'super' character 
class for ANDed patterns.
        I'm not convinced about the use of . either - However, since I 
find regular expressions as much fun as pulling teeth, I thought I'd 
give it a go..
       

>> This does not allow .00009 for example, so we'll have to make the reg 
>> exp even more complicated.
>
>
> I believe I have one somewhere that's close to being good and that 
> could exclude NaN. However it's several lines long (when wrapped) and 
> last year it tended to crash validators. I can dig it up if you don't 
> find a pleasant solution. 


    I may well take you up on that offer!

thanks

>
>



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.