hi David check this url "http://gema.sourceforge.net/new/gel.shtml" gema support greedy match gema has similar approach like lpeg's "re" package --callin