How would I remove specific characters from a string?

Hello!

I am trying to make it so a string does not have the character - by removing it from a string.

How would I do that?

I have not found anything about this yet so that’s what I am posting about it.
So for example: “hello-world-123” would be “helloworld123”.

8 Likes

local str = string.gsub("hello-world-123", "-", "")

39 Likes