Posts by Jeferson • 65 points
2 posts
-
3
votes2
answers87
viewsQ: Regex to catch single word
I’m trying to create a regex that takes an exact value within a text, example: let texto = "troquei meu carro por um outro carro uma carroça" console.log(texto.replace(/carro/g, 'barco')) The…
-
3
votes3
answers68
viewsQ: Regular expression to take one or more occurrences that precede and follow a given letter
I have the following cases... a first text as follows:: let text = "olá meu numero é trezentos e vinte e quatro tudo bem?" And this text I want to receive can also be as an example: let text = "olá…