How to convert strings a certain way

local Test = "1@#* Hello &"

print(Test)

I want the output to be HELLO. It should be all caps and removing anything in the string that isn’t letters in the alphabet

2 Likes

use string.gsub

local Test = "1@#* Hello &"
local ConvertedText = string.gsub(Test,"%a","")

print(ConvertedText)

String Patterns

4 Likes