[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Regular expression for matching lines
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 30 Jul 2007 09:11:35 -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
-->Do
-->I
-->win?
:D
-Patrick Donnelly
"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."
-Will Durant