|
On Tue, May 26, 2009 at 7:32 PM, Javier Guerra <javier@guerrag.com> wrote: > pattern matching will get you most of the work. > = ('d:\\bono\\dog\\cat.txt'):match('(%a):(\\.+\\)([^%.]+)%.(.+)$') d \bono\dog\ cat txt Although accounting for _all_ the cases with one pattern is a bit of a bitch ;) steve d.