W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

Re: regular expression in XML Schema

From: <fe.sola@infomed.sld.cu>
Date: Sat, 20 Sep 2003 13:47:20 -0400
Message-ID: <1064080040.3f6c92a824a01@webmail.sld.cu>
To: Hans Teijgeler <hans.teijgeler@quicknet.nl>
Cc: xmlschema-dev@w3.org, "paap, onno" <onno.paap@fluor.com>

Download the Regex Coach to test the regular expressions you want, it is a free tool and 
very handy. Iīm not on my work PC so I donīt have the exact url now but you could have it 
with a google search easily.
Mensaje citado por Hans Teijgeler <hans.teijgeler@quicknet.nl>:

> Hi folks,
> I am not a programmer of Java, perl or the like, but a data modeller and an XML
> Schema designer from a modelling perspective.
> The subject of regular expressions is puzzling me. I can read the XML Schema
> Recommendation a hundred times and still not understand it, because there is not
> a
> single example given.
> Two questions:
>    *     Who can point me at some reference literature for dummies on this
>      subject?
>    *     or even more time-saving (because I really have one only problem to
>      solve): who can help and wants to help me with the problem outlined below?
> The problem is as follows: I have identifiers of the type Name, that must follow
> the following pattern: AN__|AN__|identifier·an , where:
>     AN__ = an alphanumerical prefix which is case-insensitive ending with a
> double underscore; there may be one to many of such prefixes with no
>     whitespaces in between
>     identifier = an case-sensitive alphanumerical string, optionally including
> the characters . and -
>     · = the infamous "middle dot" (#x00B7) that is mentioned as an allowable
> "extender" (if I understand the purpose of such "extenders" properly)
>     an = a suffix that is an alphnumerical case-insensitive string
> NOTE The latter two bullets are to be optional
> EXAMPLES  XYZCO__HOU05__123b4X.1   and SHELL__LON87__40320-A3·Q4
> How is the "pattern"? I now have
> ([a-zA-Z][a-zA-Z0-9]*__)|([a-zA-Z][a-zA-Z0-9]*__)| [a-zA-Z0-9.\-]+
> (·[a-zA-Z0-9.\-]+), but that doesn't work and it
> probably reveals my utter ignorance.
> Please help!
> Regards,
> Hans
> PS I am working on InfowebML, see our site.

Este mensaje fue enviado usando el servicio de correo en web de Infomed
Received on Saturday, 20 September 2003 13:49:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC