diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.portuguese.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.portuguese.md index cb152028ca..4b4e838f2d 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.portuguese.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match.portuguese.md @@ -3,16 +3,16 @@ id: 587d7db4367417b2b2512b93 title: Find More Than the First Match challengeType: 1 videoUrl: '' -localeTitle: Encontre mais do que o primeiro jogo +localeTitle: Encontre mais do que a primeira correspondência --- -## Description -
Até agora, você só conseguiu extrair ou pesquisar um padrão uma vez.
deixe testStr = "Repetir, Repetir, Repetir";
vamos ourRegex = / Repeat /;
testStr.match (ourRegex);
// Retorna ["Repetir"]
Para pesquisar ou extrair um padrão mais de uma vez, você pode usar o sinalizador g .
vamos repeatRegex = / Repeat / g;
testStr.match (repeatRegex);
// Retorna ["Repetir", "Repetir", "Repetir"]
+## Descrição +
Até agora, você só conseguiu extrair ou pesquisar um padrão uma vez.
let testStr = "Repeat, Repeat, Repeat";
let ourRegex = / Repeat /;
testStr.match (ourRegex);
// Returns ["Repeat"]
Para pesquisar ou extrair um padrão mais de uma vez, você pode usar o sinalizador g .
let repeatRegex = / Repeat / g;
testStr.match (repeatRegex);
// Returns ["Repeat", "Repeat", "Repeat"]
-## Instructions -
Usando o regex starRegex , encontre e extraia ambas as palavras "Twinkle" da string twinkleStar . Nota
Você pode ter vários sinalizadores no seu regex como /search/gi
+## Instruções +
Usando a expressão regular starRegex , encontre e extraia ambas as palavras "Twinkle" da string twinkleStar . Nota
Note que você pode ter vários sinalizadores na sua expressão regular como /search/gi
-## Tests +## Testes
```yml @@ -30,15 +30,15 @@ tests:
-## Challenge Seed +## Desafio
```js let twinkleStar = "Twinkle, twinkle, little star"; -let starRegex = /change/; // Change this line -let result = twinkleStar; // Change this line +let starRegex = /change/; // Altere esta linha +let result = twinkleStar; // Altere esta linha ``` @@ -48,7 +48,7 @@ let result = twinkleStar; // Change this line
-## Solution +## Solução
```js