It is currently May 2nd, 2024, 11:11 am

Disabling WebParser Child

Get help with creating, editing & fixing problems with skins
User avatar
VasTex
Posts: 407
Joined: September 20th, 2012, 3:17 pm
Location: USA - Montana

Re: Disabling WebParser Child

Post by VasTex »

Well that answers that then - On to lua.

Thanks for the clarification Brian.
01010100 01100101 01100011 01101000 01101110 01101111 01101100 01101111 01100111 01101001
01100011 01100001 01101100 00100000 01000010 01100001 01100100 01100001 01110011 01110011
User avatar
killall-q
Posts: 305
Joined: August 14th, 2009, 8:04 am

Re: Disabling WebParser Child

Post by killall-q »

Sorry for coming out of left field — I have a solution for the original problem of substring errors only by "fixing" the regex. An empty inbox will give you empty substrings with no errors.

Code: Select all

[Variables]
Msg=(?(?=.*<entry>).*<title(?:>(.*)<)?/.*<summary(?:>(.*)<)?/.*<link.*href="(.*)")

[mMail]
Measure=Plugin
Plugin=WebParser
Url=https://#Username#:#Password#@gmail.google.com/gmail/feed/atom
RegExp=(?sU)<fullcount>(\d*)<#Msg##Msg##Msg##Msg##Msg##Msg#.*</feed>()
All you need is the .*</feed>() after your #Get#'s.

I had been trying to solve the same problem myself for the longest time and it just occurred to me that the same regex bug with optionals that was causing me headaches elsewhere was doing the same here. That dummy capture at the end is the workaround.

Edit: Regex corrections.