Code: Select all
DEBUG: (00:01:01.058) WebParser: [MeasureGamesPlayed] Matching error! (-1)
If I read it right I need 4 things for RegExp enclosed in speechmarks:
- (?siU)
the HTML BEFORE the bit I want
(.*)
The HTML after as a STOP.
And this is the code I'm trying to use (and failing). I've been cross examining the documents and the tutorial with no success.<td class=""> Games Played: </td>
<td class="td-number"> 2 265 </td>
</tr>
<tr>
<td class=""> Victories: </td>
<td class="td-number"> 1 252 (55%) </td>
</tr>
<tr>
<td class=""> Defeats: </td>
<td class="td-number"> 953 (42%) </td>
</tr>
<tr>
<td class=""> Battles Survived: </td>
<td class="td-number"> 894 (39%) </td>
</tr>
Code: Select all
[MeasureGamesPlayed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=#WoTURL#
RegExp="(?siU)<td class=""> Games Played: </td> <td class="td-number">(.*)</td>"
StringIndex=1
DecodeCharacterReference=1
[MeterGamesPlayed]
MeasureName=MeasureGamesPlayed
Meter=STRING
X=2
Y=2
FontColor=255,255,255,255
FontSize=12
StringAlign=LEFT
Prefix="Games Played: "
I have tried this with and without the carriage returns in the webpage code and would appreciate a steer.
This works fine, from the same page:
Code: Select all
[MeasurePlayerName]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=#WoTURL#
RegExp="(?siU)<title>WoT: Player Profile:(.*)</title>"
StringIndex=1
DecodeCharacterReference=1