Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 764

Lua Scripting • How to properly escape strings containing magic/meta characters when using string.match/gmatch in for loops in Lua?

$
0
0
Appreciate the sleuthing! The observation about the escaping only being required for the string.match pattern and not also the for loop line var for string.gmatch was key. Thanks for taking the time to help, I'm sure will be useful for others as well.

Will update the topic title. I suppose given this turned out to be a Lua specific issue it'd probably be better suited in the Lua script sub-forum, if anyone feels like moving it.
You're welcome, glad it helped - might be useful for me too, in the future, if the need arise. I moved the topic accordingly, was thinking the same thing as well earlier, but I wanted to get to a resolution first and was a bit tired yesterday.

Statistics: Posted by Yincognito — Yesterday, 2:51 pm — Replies 10 — Views 288



Viewing all articles
Browse latest Browse all 764

Trending Articles