Ineffective pattern for CURIE

The pattern given for CURIE in 
http://www.w3.org/TR/2010/NOTE-curie-20101216 is ineffective for 
validation since it matches anything but an empty string. That is to say 
(([\i-[:]][\c-[:]]*)?:)?.+ is no different than .+ alone. An alternative 
would be (([\i-[:]][\c-[:]]*)?:).+|([^:])+ which would require any CURIE 
without a prefix but containing a colon to be prefixed with a colon 
delimiter.
Example
a:1:more:time
:1:more:time
1 more time
would all be valid but
1:more:time
would not be.

-- 
Best regards,

Brian M. Ames
http://www.ameshymn.org

Received on Thursday, 10 May 2012 15:20:57 UTC