Question : I have this function: var titleCase = function(s) { return s.replace(/(w)(w*)/g, function(g0, g1, g2) { return g1.toUpperCase() + […]
Tag: regex
Which regular expression would be most appropriate for validating a Cronjob expression?
Question : I want to learn a little more about regular expressions. I thought of a good exercise that will […]
How do I validate an e-mail field in Dart?
Question : I created a simple project in Dart whose intention is to validate an email field when a button […]
How to capture only the first part of a text that fits the regex?
Question : <END>Av. Dr. Walter Belian, nº 2.230, Distrito Industrial, João Pessoa-PB, com CNPJ nº 07.526.557/0013-43 e Inscrição Estadual nº […]
Error for unknown cause: “SyntaxError: invalid range in character class”
Question : Situation: I have a page that contains a <iframe> of another, on this other page, I have a […]
Regex – taking certain values – PHP
Question : I’m in doubt, tried to read several articles about regular expressions, but it still did not fit my […]
Help with Regex
Question : Before asking I looked for several references, but I still do not understand much and managed to reach […]
Remove HTML tags
Question : In terms of efficiency and performance, which code is the best way to remove HTML tags in a […]
What is a regular expression?
Question : In many codes I see functions with a set of special characters that seem to have a function […]
Why sets with intervals of A-z returns symbols in REGEX?
Question : Scenario: const texto = ‘ABC [abc] a-c 1234’; console.log(texto.match(/[A-z]/g)) Because the set of A(maiúsculo) to z(minusculo) , that […]