help about pattern-matching
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: help about pattern-matching
- From: Igor Medeiros <igorosbergster@...>
- Date: Wed, 1 Jun 2011 16:02:16 -0300
Hi,
How to represent the pattern ([a-z]|[A-Z]|_)+([a-z]|[A-Z]|[0-9]_)* in Lua's format pattern.
I tried
patt = '([a-z]|[A-Z]|_)+([a-z]|[A-Z]|[0-9]_)*'
string.match( '_id', patt )
but the function match returned nil
Thanks
Igor