Hi,
In order to finish one script of mine, I need to know how I can make the program to treat capital and lowercase letters as the same. For example: WoRd == word == WorD etc
Please help me if you can.
Thank you.
with; strlower(s) or strupper(s)
look >>HERE<< (http://www.lua.org/manual/4.0/manual.html#6.2)
Thank you very much VidFamne. :)
But still I can't understand the usage of strupper(s,n). I had tried to use this, but nothing happened. Could u give me an example with this command?
Thanks again. :)
there isnt any strupper(string, number) in lua ... the documentation shows that there is a strrep(string, number)..
strrep (s, n)
Returns a string that is the concatenation of n copies of the string s.
Example :
strrep("ho ", 3).." !!! Merry Christmas!"
returns
"ho ho ho !!! Merry Chistmas!"
And; strupper("Ho,hO,ho").." !!! Merry Christmas!"
returns
HO,HO,HO !!! Merry Christmas!
while; strlower("Ho,hO,ho").." !!! Merry Christmas!"
returns
ho,ho,ho !!! Merry Christmas!
Thank you both. :) Now I learn 3 more commands in lua. :-P
Also I had realized that I was reading the wrong manual. :-P I thought that PtokaX version 0.3.3.0 was supporting lua 5. But obviously I was wrong. Thanks again. :)