[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Understanding Strings
- From: Petite Abeille <petite.abeille@...>
- Date: Mon, 28 May 2012 22:42:38 +0200
On May 28, 2012, at 9:29 PM, Mike McGonagle wrote:
> how do I parse the string to get the left paren?
As mentioned, you need to escape the parenthesis with a percent sign:
http://www.lua.org/manual/5.2/manual.html#6.4.1
Alternatively, if your brackets are matching, try %b, e.g.:
print( ( 'obj index (0 6 45)' ):match( '%b()' ) )
> (0 6 45)