c++ - Boost regexp how to parse Cookie string into map<string, string>? -


so cookie strings remixsettings_bits=1; wysiwyg=1,2,3,abc; remixclosed_tabs=0; remixgroup_closed_tabs=786432; remixlang=0; remixchk=5; remixsid=35d4f9907281708019490d07728c27ca5c10e5de7a869c322222225e3219e; audio_vol=100 wonder how parse tham map name <-> value?

try regex: (\w+)=([^;]*)

  1. \w+ - alphanumeric 1 or more repetitions
  2. =
  3. [^;]* - character except ; number of repetitions

result: enter image description here


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -