It is currently April 26th, 2024, 12:05 pm

A newbie editing Rainmeter Enigma

Discuss the use of Lua in Script measures.
Scrap
Posts: 1
Joined: May 5th, 2012, 6:55 pm

A newbie editing Rainmeter Enigma

Post by Scrap »

Hi,

Trying to customize the feed I get for my Calendar.

I am fiddling with this part of the code:

Code: Select all

sPatternItemDate = '.-When: (.-)to'
Problem is sometimes the pattern does not match and if there is no "to" in the feed I get a page break code at the end.

Image

Is there a more efficient lua code I can use? Can I somehow exclude patterns I don't want to match? (I tried [^ba] and variations of that but couldn't get it to work)

Thanks!