[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Regular expression for matching lines
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 30 Jul 2007 11:50:09 -0600
>Apologies again if this e-mail is badly formatted.
>str = "\nDo \nI\n\nwin?\n\n"
>for w in string.gmatch(str, "\n*([^\n]+)\n*") do print(w) end
I would do well to consider my own signature more often and to read the entire thread. After
rereading the original thread post, I see that asking for all lines,
>even empty ones<, is doable, but with the restraint that it
excludes the last "virtual" line isn't possible (as noted previously).
Sorry for the useless posts,
"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."