$f =~ /f(o(o(b(a(r)?)?)?)?)?$/ [download]
In reply to Re: Matching a truncated word by Sifmole in thread Matching a truncated word by John M. Dlugosz