[osis-core] bug in 2.1.1 osisGenRegex

Todd Tillinghast todd at snowfallsoftware.com
Tue Oct 16 06:42:44 MST 2007


Chris,

I am here.

I am not the regex expert, but your analysis seems correct.

I will test it on a document later today.

Todd

Chris Little wrote:
> Does this list still work? Is anyone still out there? Guess we'll soon 
> find out. :)
>
>
> Troy and I found a bug in the regex osisGenRegex in the 2.1.1 schema. 
> Currently that regex looks like [1], but it should looks like [2]:
>
> [1]     ((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_))*:)?([^:\s])+)
> [2]     ((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_)+)*:)?([^:\s])+)
>
>                          (missing + right here ^)
>
> So our document with the following element isn't valid because the 
> string "Strong" cannot be more than 1 character long in the current schema:
> <w morph="robinson:N-NSF" lemma="lemma.Strong:βίβλος">βίβλος</w>
>
>
> --Chris
>
> _______________________________________________
> osis-core mailing list
> osis-core at bibletechnologieswg.org
> http://www.bibletechnologieswg.org/mailman/listinfo/osis-core
>   




More information about the osis-core mailing list