lua-users home
lua-l archive

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




On Thu, Dec 16, 2010 at 5:11 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
what does ".*?" mean? .* is any character zero or multiple times and
what does the ? add?


In PCRE the ? makes the .* not greedy. I just assumed that was supported in rex as well. The string I'm parsing is XML, so I just need to figure out how to make rex.match use multiline searches. In Perl you use the /m flag, what's the equivalent in Lua?

Thanks,

Y