bandi94 Posted October 16, 2011 Share Posted October 16, 2011 i make this but its not working if (string.find(name,"%|")) then local name = string.gsub(name,"%|","") end thx for helping Link to comment
Discord Moderators Zango Posted October 16, 2011 Discord Moderators Share Posted October 16, 2011 Try using string.find(name,"|",0,true) instead. Will search for "|" but no need to escape it, as the fourth argument means the string won't be formatted by reggex. Also I'd use this: string.gsub(name,"%W","") remove anything else than alphanumeric stuff. Link to comment
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