Re: string.find does act differently based on input?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: string.find does act differently based on input?
- From: Doug Currie <doug.currie@...>
- Date: Sat, 7 Jul 2012 12:59:55 -0400
On Jul 7, 2012, at 12:51 PM, meino.cramer@gmx.de wrote:
>> =string.find(a,"(" )
> stdin:1: unfinished capture
> Why does string.find find the word "test" but not the "(" ?
You can escape the '(' character:
> return string.find("find(test)","%(")
5 5
e