title: Get badges information with Rainmeter webparser
body: <p>I'm trying to do a skin for Rainmeter which display reputation score and number of badges from an user profile page. Everything works great if the user have at least one badge from each category (gold, silver, bronze), but in my case for example, I don't have any gold badges yet and the skin looks something like <img src="https://i.stack.imgur.com/npcW5.jpg" alt="enter image description here">. The desired output will be something like Stack Overflow 401 0 1 7. My actual code is the following.</p>
  
  <pre><code>[Rainmeter]
  Author=Dragos Sandu
  Update=1000
  DynamicWindowSize=1
  
  [Metadata]
  Name=Stack Overflow Stats
  Author=Dragos Sandu
  Version=28 March 2015 rev 1
  License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
  Information=Simple stats displaying for Stack Overflow
  
  [Variables]
  FontName=Trebuchet MS
  FontSize=12
  
  [MeasureAll]
  Measure=Plugin
  Plugin=Plugins\WebParser.dll
  URL=http://stackoverflow.com/users/2691507/dragos-sandu
  RegExp=(?siU)&lt;span class="reputation-score"&gt;(.*)&lt;/span&gt;.*&lt;span class="badgecount"&gt;(.*)&lt;/span&gt;.*&lt;span class="badgecount"&gt;(.*)&lt;/span&gt;.*&lt;span class="badgecount"&gt;(.*)&lt;/span&gt;
  
  [MeasureReputation]
  Measure=Plugin
  Plugin=WebParser
  URL=[MeasureAll]
  StringIndex=1
  
  [MeasureGold]
  Measure=Plugin
  Plugin=WebParser
  URL=[MeasureAll]
  StringIndex=2
  
  [MeasureSilver]
  Measure=Plugin
  Plugin=WebParser
  URL=[MeasureAll]
  StringIndex=3
  
  [MeasureBronze]
  Measure=Plugin
  Plugin=WebParser
  URL=[MeasureAll]
  StringIndex=4
  
  [MeterText]
  Meter=String
  Prefix="Stack Overflow  "
  FontFace=#FontName#
  FontColor=#FFF
  FontSize=#FontSize#
  StringAlign=Left
  
  [MeterReputation]
  Meter=String
  MeasureName=MeasureReputation
  FontFace=#FontName#
  FontColor=F0F0F0
  FontSize=#FontSize#
  StringAlign=Left
  StringStyle=bold
  X=120
  
  [MeterGold]
  Meter=String
  MeasureName=MeasureGold
  X=195
  FontFace=#FontName#
  FontColor=FFCC00
  FontSize=#FontSize#
  StringStyle=bold
  StringAlign=Left
  
  [MeterSilver]
  Meter=String
  MeasureName=MeasureSilver
  X=235
  FontFace=#FontName#
  FontColor=C5C5C5
  FontSize=#FontSize#
  StringStyle=bold
  StringAlign=Left
  
  [MeterBronze]
  Meter=String
  MeasureName=MeasureBronze
  X=285
  FontFace=#FontName#
  FontColor=CC9966
  FontSize=#FontSize#
  StringStyle=bold
  StringAlign=Left
  </code></pre>
  
  <p>I read something about Webparser Lookahead Assertions and try to do a working RegExp but with no success. The best result I had was <code>(?siU)&lt;span class="reputation-score"&gt;(.*)&lt;/span&gt;(?(?=.*&lt;span title="(.*) gold))(?(?=.*&lt;span title="(.*) silver))(?(?=.*&lt;span title="(.*) bronze))</code> but it didn't provide what i want. What should be the correct RegExp? Thanks!</p>