Jump to content

First symbol in Edit


Recommended Posts

Posted (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 by slapz0r
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...