• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Linux What is this regex doing? (1 Viewer)

schwim

Newcomer
Joined
Jul 9, 2021
Messages
1
Reaction score
0
Location
Western NC, US
Hello there, everyone!

I was looking through a lua file and see this expression but I can't figure out what it's supposed to be doing:

return s:match"^%s*(.*)":match"(.-)%s*$"

Could someone help me with what this is supposed to do?

Thanks for your time!
 
Top