Rainmeter weather skin7/27/2023 ![]() Url=File://#SKINSPATH#\Notes\Files\notes.txtĪnd then my individual string indexers would have looked like The content of my local file looks something like this: sentence 1Īnd my Rainmeter webparser measure looks like this: Thank you and stay subscribed for more content.I'm creating a rainmeter skin, where I need to read the content of a local file and then split up its content. 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).Īnyways it's not working so I have a flaw in my thinking some place, and I hope someone can help me find it please.īig thank you in advance to any possible help. :)įirst of all, you cannot simply quantify your whole pattern, and hope to reference each match with an index, regular expressions doesn't work like that, it will gobble up every possible match, and return the last one. Secondly, because you've set the line content to zero-or-more and the newline part to optional, your last match is likely to always be an empty string.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |