1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to make a pattern that check that all the first letter should be capital?

Discussão em 'Angular' iniciado por Ilia Tapia, Julho 19, 2025.

  1. Ilia Tapia

    Ilia Tapia Guest

    I need a pattern on angular that checks only if the first letter of each word will be capital. To Make something like this I am using this pattern

    pattern ="^([A-Z][a-z]*((\\s[A-Za-z])?[a-z]*)*)$"


    1-works only for the first letter

    2- when I have for example 2 fails, I want to check the first letter of strings.

    Continue reading...

Compartilhe esta Página