[Httplib2-discuss] =?WINDOWS-1252?Q?Re:_[Httplib2-discuss]_Re:_Bug_#1455955:_Follo?= =?WINDOWS-1252?
Status: Beta
Brought to you by:
jcgregorio
From: Joe G. <joe...@gm...> - 2006-03-31 15:22:08
|
Thomas, That's really great work on the regex, can you also add some unit tests that exercise the regex? Thanks, -joe On 3/31/06, Thomas Broyer <t.b...@gm...> wrote: > 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) constru= cts. > [=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&= group_id=3D161082&atid=3D818434 > > -- > Thomas Broyer > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Httplib2-discuss mailing list > Htt...@li... > https://lists.sourceforge.net/lists/listinfo/httplib2-discuss > -- Joe Gregorio http://bitworking.org |