Gumie Posted May 6, 2020 at 06:49 PM Report #618047 Posted May 6, 2020 at 06:49 PM Boa tarde a todos. Gostaria de saber se existe alguma forma de colocar a primeira letra de um nome em maiúscula, numa so string. Exemplo, caso o utiliador escreva manuel silva, o resultanho venha Manuel Silva. Obrigado desde já.
Solution shizzzzzzzz Posted May 6, 2020 at 07:13 PM Solution Report #618048 Posted May 6, 2020 at 07:13 PM string str = "antonio maria"; Console.WriteLine(Regex.Replace(str, @"\b[a-z]", delegate (Match m) { return m.Value.ToUpper(); } )); 1 Report
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