Tekken Posted May 29, 2015 Posted May 29, 2015 How do I check if a text have upper or lowercase letters? Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Walid Posted May 29, 2015 Posted May 29, 2015 How do I check if a text have upper or lowercase letters? You can use sth like this string.match(Text here, patterns) patterns %l --- all lowercase letters. %u --- all uppercase letters. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Tekken Posted May 29, 2015 Author Posted May 29, 2015 How do I check if a text have upper or lowercase letters? You can use sth like this string.match(Text here, patterns) patterns %l --- all lowercase letters. %u --- all uppercase letters. and if i want to remove it ? Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Walid Posted May 29, 2015 Posted May 29, 2015 and if i want to remove it ? You want to remove the Whole string or just the (lowercase or uppercase) letters. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Tekken Posted May 29, 2015 Author Posted May 29, 2015 and if i want to remove it ? You want to remove the Whole string or just the (lowercase or uppercase) letters. I use string.find(text, "WoRdS") and I want to remove that word iven if have lower or uppercase letters Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Walid Posted May 29, 2015 Posted May 29, 2015 I use string.find(text, "WoRdS") and I want to remove that word iven if have lower or uppercase letters Use string.gsub() Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
xXMADEXx Posted May 29, 2015 Posted May 29, 2015 To make upper or lowercase, you can use the upper or lower string methods: local t = "This IS my TeXt!"; -- Lower case (Same thing in a different format) print ( t:lower( ) ); print ( string.lower ( t ) ); -- Uppercase (Same thing in a different format) print ( t:upper( ) ); print ( string.upper ( t ) ); The Ultimate Lua Tutorial! | MTA PHP SDK
Walid Posted May 29, 2015 Posted May 29, 2015 To make upper or lowercase, you can use the upper or lower string methods: local t = "This IS my TeXt!"; -- Lower case (Same thing in a different format) print ( t:lower( ) ); print ( string.lower ( t ) ); -- Uppercase (Same thing in a different format) print ( t:upper( ) ); print ( string.upper ( t ) ); :3 i think you need to read the question because as i can see he is asking about "How he can check if a text have upper or lowercase letters?" Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
xXMADEXx Posted May 29, 2015 Posted May 29, 2015 To make upper or lowercase, you can use the upper or lower string methods: local t = "This IS my TeXt!"; -- Lower case (Same thing in a different format) print ( t:lower( ) ); print ( string.lower ( t ) ); -- Uppercase (Same thing in a different format) print ( t:upper( ) ); print ( string.upper ( t ) ); :3 i think you need to read the question because as i can see he is asking about "How he can check if a text have upper or lowercase letters?" and if i want to remove it ? You want to remove the Whole string or just the (lowercase or uppercase) letters. I use string.find(text, "WoRdS") and I want to remove that word iven if have lower or uppercase letters I was answering this question. The Ultimate Lua Tutorial! | MTA PHP SDK
Walid Posted May 29, 2015 Posted May 29, 2015 I was answering this question. Also , Wrong answer he is asking about how he can remove the word. simply he can use string.gsub string.gsub(Text,"the Word you want to remove"," ") -- Empty replaceString Example : Text = "You gave him a wrong answer" NewText = string.gsub(Text,"wrong","") -- Result : You gave him a answer Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
xXMADEXx Posted May 29, 2015 Posted May 29, 2015 I was answering this question. Also , Wrong answer he is asking about how he can remove the word. simply he can use string.gsub string.gsub(Text,"the Word you want to remove"," ") -- Empty replaceString Example : Text = "You gave him a wrong answer" NewText = string.gsub(Text,"wrong","") -- Result : You gave him a answer Ah yes, I didn't see that. It's fine, people make mistakes. The Ultimate Lua Tutorial! | MTA PHP SDK
Walid Posted May 29, 2015 Posted May 29, 2015 Ah yes, I didn't see that. It's fine, people make mistakes. yes i know , have a nice day Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Tekken Posted May 29, 2015 Author Posted May 29, 2015 Thanks guys Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now