lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Jeff Wise wrote:
I have a capture pattern problem:

   for page in string.gmatch(data, "^[\f]*[\f]+$") do
         pages[#pages + 1] = page
   end -- for

The "^[\f]*[\f]+$" is supposed to capture any/all up to a FormFeed (x'0c').
I am capturing nothing.  What have I done wrong?

Try pattern "[^\f]+"