[Httplib2-discuss] =?WINDOWS-1252?Q?Re:_Bug_#1455955:_Followup_=96_match?= =?WINDOWS-1252?Q?ing_"tok
Status: Beta
Brought to you by:
jcgregorio
From: Thomas B. <t.b...@gm...> - 2006-03-31 08:29:28
|
2006/3/31, Thomas Broyer <t.b...@gm...>: > Moreover, matching tokens and quoted-strings can be done within a > single regex, using (?<=3D=85), (?=3D=85), (?<!=85) and (?!=85) construct= s. [=85] > [=85] a small bug preventing commas from being prefixed with spaces > (which is explicitely allowed by the definition of #-lists in HTTP). [=85] > Back to the [a-zA-Z0-9_-] vs. \w problem, I've done some more research > and actually, the exact regex for a quoted string (without the <">s) > is [=85] > The exact regex for a token is [=85] I've created a bug report [1] (1461941 =96 Bugs in _parse_www_authenticate's regex + use a single regex) with attached patch, and an alternative "lax" regex (far more readable) [1] http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1461941&gr= oup_id=3D161082&atid=3D818434 -- Thomas Broyer |