I'm creating a rainmeter skin, where I need to read the content of a local file and then split up its content.
The content of my local file looks something like this:
sentence 1
sentence 2
sentence 3
sentence 4
and my Rainmeter webparser measure looks like this:
[MeasureParser]
Measure=Plugin
Plugin=WebParser.dll
Url=File://#SKINSPATH#\Notes\Files\notes.txt
RegExp="((.*)((?>\r\n|\n|\r)?))+"
And then my individual string indexers would have looked like
[MeasureParserChild1]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureParser]
StringIndex=1
What I would have wanted it to do is split the file content by newline (?>\r\n|\n|\r)
, but apparently it doesn't work for me.
The way I read my regex is like that there is a number of characters (.*)
followed by a possible newline (?>\r\n|\n|\r)?
that is optional (in case there is only one line in my file. And then all that (.*)((?>\r\n|\n|\r)?)
can be present several times (1 or more).
Anyways it's not working so I have a flaw in my thinking some place, and I hope someone can help me find it please.
Big thank you in advance to any possible help. :)