[OAI-implementers] Perl regexp for validating 'identifier' (anyURI) needed

marinb@gmx.net marinb@gmx.net
Wed, 26 Feb 2003 01:04:00 +0100 (MET)


Hi all.

I am sure somebody has already written/found a reasonable good perl regexp
for validating the identifier parameter. I only could find one for decoding

m|^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?|

but it is not suitable for validating as no check is made for allowed
characters
within each 'fragment'. There must be a better solution instead of
extracting
the fragments and validating each of them separately?

Can anybody also tell me where is the problem with following request?

Response to this request did not give error code 'badArgument':
verb=ListRecords&metadataPrefix=oai_dc&resumptionToken=junk&until=1990-01-10

Would appreciate very much any help,
Cheers,
Marin

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!