OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Fun with regular expressions

[ Lists Home | Date Index | Thread Index ]

Max Chappell scripsit:

> Following one set of advice would allow us to use ^ at the start of the 
> reg exp to exclude NaN:
> "[^N].*"  - this doesn't work with either Xerces or XML Spy.

Well, if negated character classes won't work, there seems to be
no reason why "[0-9+.-].*" should not.

<plug>Of course, in RELAX NG you just write "xsd:double - 'NaN'".
</plug>

-- 
John Cowan <jcowan@reutershealth.com> www.ccil.org/~cowan  www.reutershealth.com
Micropayment advocates mistakenly believe that efficient allocation of
resources is the purpose of markets.  Efficiency is a byproduct of market
systems, not their goal.  The reasons markets work are not because users
have embraced efficiency but because markets are the best place to allow
users to maximize their preferences, and very often their preferences are
not for conservation of cheap resources.  --Clay Shirkey




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS