fairyoggy Posted June 28, 2019 Posted June 28, 2019 (edited) Hello! I have edit. How do I make a restriction for the first character? I Mean For example, so that the first character was just with a capital letter smth like that but only for first symbol DGS:dgsEditSetWhiteList(Edit ,"[^a-zA-Z]") Example: hello - wrong Hello - good Edited June 28, 2019 by slapz0r
fairyoggy Posted June 28, 2019 Author Posted June 28, 2019 1 hour ago, N3xT said: string.gsub(string, "^%l", string.upper) @N3xT Can I have an example with this function? I do not understand how to apply it correctly
N3xT Posted June 29, 2019 Posted June 29, 2019 That's an example, just replace 'string' with your actual string.
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