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
It is currently May 1st, 2024, 9:27 am
Help with WebParser.dll
-
- Posts: 82
- Joined: November 29th, 2010, 5:28 pm
-
- Developer
- Posts: 2872
- Joined: April 17th, 2009, 12:18 pm
Re: Help with WebParser.dll
The u should be a capital U (i.e. (?siU))Grantp wrote:RegExp="(?siu)<h2>(.*)</h2>"
-
- Posts: 82
- Joined: November 29th, 2010, 5:28 pm
Re: Help with WebParser.dll
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.
I checked and checked it was the same ad still hadn't picked up on the capital 'U'.
Works great now.