Gmatch stata. gmatch pattern for multiple commas in a row Asked 6 years, 11 months ago Modified...



Gmatch stata. gmatch pattern for multiple commas in a row Asked 6 years, 11 months ago Modified 6 years, 11 months ago Viewed 2k times Jul 17, 2017 · I'm trying to make a function that searches through some code to find the line the search term is on, as well as the line's index. gmatch () or string. The code is a multi line string with new line characters. 4 interpreter, everything works. find is the most versatile, returning the first match and its position. gmatch is best when you are only interested in the matches, and want to iterate over them. 46 If you are splitting a string in Lua, you should try the string. I was th Nov 24, 2014 · for w in s:gmatch("([^;]+)") do table. gmatch returns strings. So i and x are both strings in your code, given that you have a match of course. hlwkob bjti vpudv kfmrgnmx qgarj apro gvqmzi lnmue wumoaq ewvgm