[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The shortest possible sequence match with Lua regular expressions
- From: Joshua Jensen <jjensen@...>
- Date: Mon, 02 Nov 2009 08:46:37 -0700
Peter Cawley wrote:
With the pattern '(/.-/)$', you're asking Lua to match a forward
slash, then match as few characters as possible such that what then
follows is a forward slash followed by the end of the string. After
the first forward slash in the pattern is matched against the first
forward slash in the input, the minimum amount which can be captured
to get a forward slash followed by the end of the input is the entire
of the input.
Thank you for the answers. I will forward the information.