Like and Wildcard Operator?

I am scanning my DocumentsDirectory with the LuaFileSystem, for a variety of files.
I’m wondering if there is a wildcard operator in Lua?

Basically I want to say this:

local lfs = require "lfs"  
local doc\_path = system.pathForFile( "", system.DocumentsDirectory)  
  
--scan the directory's files  
for file in lfs.dir(doc\_path) do  
  
 --\> look for any files ending with .jpg  
 if file is like ".jpg" then  
 --do something if any files ending with .JPG are scanned  
 end  
  
end  

I’m used to the percentage sign, or asterisk as wildcard operators, but maybe it’s different in Corona/Lua? [import]uid: 154122 topic_id: 28861 reply_id: 328861[/import]