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: steve donovan <steve.j.donovan@...>
- Date: Sat, 7 Jul 2012 19:02:11 +0200
On Sat, Jul 7, 2012 at 6:51 PM, <meino.cramer@gmx.de> wrote:
> Why does string.find find the word "test" but not the "(" ?
Because '(' is a 'magic character' in string patterns. If you say
string.find(s,'(',1,true) then it does a plain search.
steve d.