of     1   

sk8ercool456
#58499676Thursday, November 24, 2011 5:04 PM GMT

Let's say I have this string: s = "ABCDEFGHIJKL2MNOPQRSTUVWXYZ" How would I remove the 2 from it without necessarily knowing its location within the string?
swimguy777
#58499933Thursday, November 24, 2011 5:08 PM GMT

I'm not particularly sure, but wouldn't it be something like this: s = "ABCDEFGHIJKL2MNOPQRSTUVWXYZ" string.gsub(s,"%d","") -[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and Helper of Scripting::]-
Anaminus
Top 100 Poster
#58500224Thursday, November 24, 2011 5:13 PM GMT

s = s:gsub("2","") Gsub looks for any instance of "2", and replaces it with nothing. "%d" would look for any digit (i.e. 0-9). You can look up "lua string patterns" for a basic tutorial on it.
sk8ercool456
#58500304Thursday, November 24, 2011 5:14 PM GMT

Thanks.
sk8ercool456
#58501161Thursday, November 24, 2011 5:29 PM GMT

How would I remove everything but numbers?
FoolHater
#58501804Thursday, November 24, 2011 5:40 PM GMT

s=s:gsub(%D,"") A capital letter represents the complement of a character class. In this case, the complement of the digit character class are symbols, letters, etc. (Non-digits).
FoolHater
#58502176Thursday, November 24, 2011 5:46 PM GMT

http://wiki.roblox.com/index.php/Patterns I read this yesterdy. s=s:gsub("%D","") Oops, I forgot to put double quotation marks around %D

    of     1