Test, validate and match regular expressions
This regular expression matches filenames ending with the .lua extension at the end of a line or string. By matching any characters except a forward slash before the extension, it effectively isolates the filename from a larger Unix-like file path. Using the global and multiline flags, it is perfect for scanning logs or configuration files to find multiple Lua script references.