I have some text that I want to check for a certain pattern, but my problem is what if the text i want to check for is in the string numerous instances?
Is there a way to use regexps to capture each instance or would I have to parse the string iteratively?
string.gsub(text,"(%S+)",function (word) dosomething() end)
The funtion is always executed when a non-space string is found in text.