I got you covered fellow Lua user
http://leafo.net/guides/parsing-expression-grammars.html
http://www.wra1th.plus.com/lua/lpeg.html
http://www.wra1th.plus.com/lua/peg/PEG.html
http://lua-users.org/wiki/LpegTutorial
https://rawgit.com/dlaurie/lua-notes/master/lpeg-brief.html