From: Graham B. <gb...@po...> - 2002-01-22 20:24:46
|
On Sun, Jan 20, 2002 at 05:23:23PM +0100, Peter Marschall wrote: > I like Graham's idea very much. > It's a short simple parser that does it's best to decode these > things and works in most cases. > Since RFC2252 allows schemas that allow different interpretations > (see Chris' mail with the EQUALITYNOORDERINGBORGCOLLECTIVE example) > one has to make restrictions on schemas to be able to parse them > successfully. > > Reading my last lines again, I would suggest a simple > change to Grahans solution: > I would disallow closing braces after single quotes inside > qdstrings, but would allow for qdstringlists with no space between > the last qdstring and the follwoing closing brace.. > > So instead of changing > '([^']*)' > to > '((?:[^']+|'\S)*)' > I would suggest changing it to > '((?:[^']+|'[^\s)])*)' I don't really mind either way. But can you give a reason for this ? Graham. |