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 ]

Do you have to use a regular expression? I note that the Schema datatypes
spec says "Not-a-number equals itself and is greater than all float values,
including positive infinity."

Perhaps a maxInclusive of "INF"?  (Disclaimer: haven't tried it)

.micah

-----Original Message-----
From: Robin Berjon [mailto:robin.berjon@expway.fr]
Sent: Wednesday, February 04, 2004 8:22 AM
To: max@maxxml.co.uk
Cc: 'xml-dev@lists.xml.org'
Subject: Re: [xml-dev] Fun with regular expressions


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.

> 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.

-- 
Robin Berjon

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>




 

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

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