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

Re: regular expression in XML Schema

From: Hans Teijgeler <hans.teijgeler@quicknet.nl>
Date: Sun, 21 Sep 2003 09:37:39 +0200
To: fe.sola@infomed.sld.cu
Cc: xmlschema-dev@w3.org, "paap, onno" <onno.paap@fluor.com>
Message-id: <3F6D5543.C690BF44@quicknet.nl>
Dear Lizet,

Thanks for your help! Good stuff. The resulting regular expression turned out to be:

                    ([a-zA-Z][a-zA-Z0-9]*__)*[a-zA-Z0-9.-]*·[a-zA-Z0-9.-]*

I realized, in hindsight, that the requirement for case sensitivity was rather meaningless in
this context.

Regards,
Hans

PS1 The URL from which I downloaded Regex Coach was
http://www.onlythebestfreeware.com/program.asp?program_id=172
PS2 The URL of Edi Weitz, the author of this freeware, is http://weitz.de
PS3 The URL of our website is http://www.InfowebML.org

=====================================

fe.sola@infomed.sld.cu wrote:

> Hello,
> 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.
> hth,
> Lizet.
> 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
> http://webmail.sld.cu


Received on Sunday, 21 September 2003 03:34:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT