Hamatora Posted June 14, 2017 Share Posted June 14, 2017 Can anyone tell me how do I remove [ ] brackets using string.gsub? Link to comment
PeaceBomb99 Posted June 14, 2017 Share Posted June 14, 2017 You have to escape them with % local str = "[lol] ok[]." local str = str:gsub("[%[%]]","") print(str) 1 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