[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: validation function
- From: "Nilay Tripathi" <nilaytripathi@...>
- Date: 25 Aug 2005 03:21:30 -0000
I am very new to LUA. Going through the manuals and tutorials these days.
I was trying to write a function for filtering out charachters like
, . " \ from the string. I wrote a small function for this but somehow it is not working in the correct manner. Please take a look and it would be great if you can please suggest changes to correct it.
if string.find(s,".")~='nil' then
if string.find(s,",")~='nil' then
if string.find(s,"\\")~='nil' then
if string.find(s,[["]])~='nil' then
if x==0 then
return "weired chars"