Learn Java Programming - Regex Boundaries Tutorial

Publicado em: 28 Fevereiro 2016
no canal de: Daniel Ross
1,538
25

Regex boundaries allow you assert things about where a token can exist in a search string. Let's imagine for a moment that we want to make sure that the first three characters of a string are actually digits followed by a dash(-). We would do this using the caret(^) metacharacter which instructs the regex engine to make sure the token to the right is the first thing in the beginning of a line.
"^(\\d){3}-" · "867-5309" will return TRUE when invoking the .find() method.


Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - Regex Boundaries Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 28 Fevereiro 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,538 vezes e gostou 25 espectadores. Boa visualização!