How to check if matching text is found in a string in Lua?
There are 2 options to find matching text; string.match or string.find. Both of these perform a regex search on the string to find matches. string.find() string.find(subject string, pattern string, optional start position, optional plain flag) Returns the startIndex & endIndex of the substring found. The plain flag allows for the pattern to be ignored and … Read more