mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-10-02 16:54:00 -04:00
translating 'meta characters'
This commit is contained in:
parent
f008b7c291
commit
cf6dafebd9
@ -75,24 +75,23 @@ A expressão regular `123` corresponde a string `123`. A expressão regular é c
|
|||||||
|
|
||||||
## 2. Metacaracteres
|
## 2. Metacaracteres
|
||||||
|
|
||||||
Meta characters are the building blocks of the regular expressions. Meta characters do not stand for themselves but instead are
|
Metacaracteres são elementos fundamentais das expressões regulares. Metacaracteres não representam a si mesmos mas, ao invés disso, são interpretados de uma forma especial. Alguns metacaracteres tem um significado especial e são escritos dentro de colchetes.
|
||||||
interpreted in some special way. Some meta characters have a special meaning and are written inside square brackets.
|
Os metacaracteres são os seguintes:
|
||||||
The meta characters are as follows:
|
|
||||||
|
|
||||||
|Meta character|Description|
|
|Metacaracter|Descrição|
|
||||||
|:----:|----|
|
|:----:|----|
|
||||||
|.|Period matches any single character except a line break.|
|
|.|Corresponde a qualquer caractere, exceto uma quebra de linha|
|
||||||
|[ ]|Character class. Matches any character contained between the square brackets.|
|
|[ ]|Classe de caracteres. Corresponde a qualquer caractere contido dentro dos colchetes.|
|
||||||
|[^ ]|Negated character class. Matches any character that is not contained between the square brackets|
|
|[^ ]|Classe de caracteres negada. Corresponde a qualquer caractere que não está contido dentro dos colchetes.|
|
||||||
|*|Matches 0 or more repetitions of the preceding symbol.|
|
|*|Corresponde à 0 ou mais repetições do símbolo anterior.|
|
||||||
|+|Matches 1 or more repetitions of the preceding symbol.
|
|+|Corresponde à 1 ou mais repetições do símbolo anterior.|
|
||||||
|?|Makes the preceding symbol optional.|
|
|?|Faz com que o símbolo anterior seja opcional.|
|
||||||
|{n,m}|Chaves. Matches at least "n" but not more than "m" repetitions of the preceding symbol.|
|
|{n,m}|Chaves. Corresponde à no mínimo "n" mas não mais que "m" repetições do símbolo anterior.|
|
||||||
|(xyz)|Character group. Matches the characters xyz in that exact order.|
|
|(xyz)|Grupo de caracteres. Corresponde aos caracteres xyz nesta exata ordem.|
|
||||||
|||Alternância. Matches either the characters before or the characters after the symbol.|
|
|||Alternância. Corresponde os caracteres antes ou os caracteres depois do símbolo|
|
||||||
|\|Escapes the next character. This allows you to match reserved characters <code>[ ] ( ) { } . * + ? ^ $ \ |</code>|
|
|\|Escapa o próximo caractere. Isso permite você utilizar os caracteres reservados <code>[ ] ( ) { } . * + ? ^ $ \ |</code>|
|
||||||
|^|Matches the beginning of the input.|
|
|^|Corresponde ao início da entrada.|
|
||||||
|$|Matches the end of the input.|
|
|$|Corresponde ao final da entrada.|
|
||||||
|
|
||||||
## 2.1 Ponto final
|
## 2.1 Ponto final
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user