[osis-core] Regex question

Todd Tillinghast osis-core@bibletechnologieswg.org
Wed, 17 Sep 2003 11:33:01 -0600


Patrick,

Yes we should require at least one character and we should exclude
whitespace.

Todd

> -----Original Message-----
> From: osis-core-admin@bibletechnologieswg.org [mailto:osis-core-
> admin@bibletechnologieswg.org] On Behalf Of Patrick Durusau
> Sent: Wednesday, September 17, 2003 9:18 AM
> To: osis-core@bibletechnologieswg.org
> Subject: [osis-core] Regex question
> 
> Guys,
> 
> Working on the new regex and noticed that we currently have for grain:
> 
> (@(cp:\[(\p{Nd})*\]|s:\[(\p{L}|\p{N}|\s)*\]))?
> 
> Note that the "*" operator means zero or more.
> 
> IF someone put the grain syntax in (yes, need to ditch the ":" as
well,
> but it is now in 1.7) shouldn't we require some content in between the
> [ ]'s?
> 
> Easy enough to fix using the "+" operator, which means one or more.
> 
> Would give us cheap error detection on grains that have no content.
> 
> Noticed it when I was writing the addition to the regex for Todd's
> occurrrence indicator.
> 
> Hope everyone is having a great day!
> 
> Patrick
> 
> --
> Patrick Durusau
> Director of Research and Development
> Society of Biblical Literature
> Patrick.Durusau@sbl-site.org
> Chair, V1 - Text Processing: Office and Publishing Systems Interface
> Co-Editor, ISO 13250, Topic Maps -- Reference Model
> 
> Topic Maps: Human, not artificial, intelligence at work!
> 
> 
> _______________________________________________
> osis-core mailing list
> osis-core@bibletechnologieswg.org
> http://www.bibletechnologieswg.org/mailman/listinfo/osis-core