[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to represent a tab character in a string.gsub pattern?
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 5 Jan 2011 08:44:09 +0200
On Wed, Jan 5, 2011 at 8:40 AM, Steve Litt <slitt@troubleshooters.com> wrote:
> So what do you think -- how do you represent tab or "anything but tab" in a
> Lua pattern?
The pattern '\t' will match a tab, '\t+' will match one or more. And
'[^\t]+' will match non-tab characters.
So it really works like any other character...
steve d.