mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-08-06 03:26:42 -04:00
Add chapter six translation to Portuguese
This commit is contained in:
parent
9498781445
commit
bcc9b0079d
@ -78,6 +78,7 @@ A expressão regular acima aceita as strings `john_doe`, `jo-hn_doe` e `john12_a
|
|||||||
- [Indiferente à Maiúsculas](#51-indiferente-à-maiúsculas)
|
- [Indiferente à Maiúsculas](#51-indiferente-à-maiúsculas)
|
||||||
- [Busca Global](#52-busca-global)
|
- [Busca Global](#52-busca-global)
|
||||||
- [Multilinhas](#53-multilinhas)
|
- [Multilinhas](#53-multilinhas)
|
||||||
|
- [Guloso vs Não-Guloso](#6-guloso-vs-não-guloso)
|
||||||
|
|
||||||
## 1. Combinações Básicas
|
## 1. Combinações Básicas
|
||||||
|
|
||||||
@ -420,6 +421,23 @@ O modificador `m` é usado para realizar uma busca em várias linhas. Como falam
|
|||||||
|
|
||||||
[Teste a RegExp](https://regex101.com/r/E88WE2/1)
|
[Teste a RegExp](https://regex101.com/r/E88WE2/1)
|
||||||
|
|
||||||
|
### 6. Guloso vs Não-Guloso
|
||||||
|
|
||||||
|
Por padrão, uma regex irá realizar uma consulta gulosa, isto significa que a busca irá capturar ao padrão mais longo possível. Nós podemos usar `?` para buscar de uma forma não-gulosa, isto significa que a busca irá capturar ao padrão mais curto possível.
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
"/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. </pre>
|
||||||
|
|
||||||
|
|
||||||
|
[Teste a RegExp](https://regex101.com/r/AyAdgJ/1)
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
"/(.*?at)/" => <a href="#learn-regex"><strong>The fat</strong></a> cat sat on the mat. </pre>
|
||||||
|
|
||||||
|
|
||||||
|
[Teste a RegExp](https://regex101.com/r/AyAdgJ/2)
|
||||||
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
* Reporte bugs
|
* Reporte bugs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user