I'm wanting to make a trigger that will fire on qw and load all the names into a table. The regex for it is (\w+)\,\s and I set it to match all occurrences in a line. I then tried having it execute table.insert(myTable, matches[2]) but this only give me a table with 1 element. How do I make it so that it will run table.insert() for each match?
0
Comments
Using the code above, you can have your trigger line with the following in the white box:
Simples!
Svof
Mudlet Discord join up
myTable = string.split(matches[1], ", ")
? Then have a check to replace the last entry of "and <name>" with just name.
Cascades of quicksilver light streak across the firmament as the celestial voice of Ourania intones, "Oh Jarrod..."