I’m currently working on a script gathering information from a website. I’m wondering if string.match would be able to accept regex pattern matching, such as the following:
string.match(page, "(?:(Phrase One|Phrase Two|Phrase Three|...))")
The problem is, I don’t know if it can be done, but I’m willing to try any solutions. Thanks!
What you could do is to define a function which takes your patterns as a table and then returns a table of matches, or if you only need to know if the text is contained in the page then following would work.