Jacques Deguest <[EMAIL PROTECTED]> writes:
> Shall I suggest to widen a bit the range of acceptable character part
> of a boundary without necessarily the needs of surrounding quotes?
> something like [\w+\-\_]+
'_' is already part of \w.
RFC 2616 defines things like this:
CHAR = <any US-ASCII character (octets 0 - 127)>
CTL = <any US-ASCII control character
(octets 0 - 31) and DEL (127)>
separators = "(" | ")" | "<" | ">" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
token = 1*<any CHAR except CTLs or separators>
attribute = token
value = token | quoted-string
parameter = attribute "=" value
So, "-" is an acceptable token char, so no quote is needed in this
case. I think we should extend the RE to include the rest of the
token chars as well.
Regards,
Gisle