It is currently May 1st, 2024, 9:27 am

Help with WebParser.dll

Get help with creating, editing & fixing problems with skins
Grantp
Posts: 82
Joined: November 29th, 2010, 5:28 pm

Help with WebParser.dll

Post by Grantp »

I have a little skin that looks at Rainmeter Home page and picks up the date of the latest Rainmeter Beta Version (so I know when to update). This works perfect using the code below:

[MeasureDate]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=43200
Url="http://rainmeter.net/cms/"
RegExp="(?siU)<p><b>(.*)</b></p>"
StringIndex=1

I then thought I would like it to also give me the version number. The best place to pick this up appears to me to be on the changes page where it gives date and version so I have been trying this:

[MeasureDate]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=43200
Url="http://rainmeter.net/Changes.htm"
RegExp="(?siu)<h2>(.*)</h2>"
StringIndex=1

This doesn't work giving me the error:

WebParser.dll: [MeasureDate] PCRE compilation failed at offset 4: unrecognized character after (? or (?-

Am I doing something wrong or are you not able to Parse this page for some reason. Any help would be appreciated.

Many thanks

Grant
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Help with WebParser.dll

Post by poiru »

Grantp wrote:RegExp="(?siu)<h2>(.*)</h2>"
The u should be a capital U (i.e. (?siU)) :)
Grantp
Posts: 82
Joined: November 29th, 2010, 5:28 pm

Re: Help with WebParser.dll

Post by Grantp »

Thanks again for help.

I checked and checked it was the same ad still hadn't picked up on the capital 'U'.

Works great now.