O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 15 de 33 · Mídia

Literal

Kostas Diakogiannis

Literal

Define patterns

Inside the slashes we can freely define our pattern. If you type a series of characters these characters will be taken as a literal, and the only match that you will accept is what you have inside the slashes. 

 

We can test if we have a matching pattern or not with the test function that is being executed on a regex and accepts the string, that our regex will be tested on. This function returns a boolean.

In this case line 7 will return a true value.

If you want to practice more, check this site here!

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?