[osis-core] 010 - regex problems

Chris Little osis-core@bibletechnologieswg.org
Mon, 2 Sep 2002 22:32:08 -0700 (MST)


looking at osisRefType:

"X.X" is valid, but "X" is not.  There's a missing '?' shortly before the 
first @.  It should read something like:

(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?    
(etc.)

osisIDType looks to be correct already in this respect.

Also, the two grain elements allow empty contents.  So "X@cp:[]" and 
"X@s:[]" are valid (assuming the above change).  I'm not sure whether this 
is intended.  If not, just change the * to a + inside each square brace.

Those are the only problems I've found; looks good.

--Chris