Most voted "regex" questions
Use this tag when the question refers to some resource, information, or problem relating exclusively to regular expressions. Regular expressions (usually abbreviated as "Regex", "regex" or "regexp") are a declarative language used for matching patterns within strings. When asking, also include a tag specifying the programming language or tool you are using to identify one of the different dialects.
Learn more…1,253 questions
Sort by count of
-
-5
votes1
answer164
viewsRegex For Numeric Fields
I need a regex that validates numbers, commas, and period it must contain numbers and if it contains a point or comma, have only one of the two, and only once 1.1 - true 1,2 - true 2 - true 1..2 -…
-
-5
votes3
answers248
viewsRegex - take only the first occurrence of a word in Python?
In a string, there are several occurrences of a word, but I want to take only the first occurrence of this, how to do? Below comes 'first' twice, but I wish only the first. re.findall(r'primeiro','…
-
-6
votes1
answer44
viewsWhat is the Regexp equivalent of split("") in JS?
I want to split the number PI 3.141593 into an array that does not contain '.' and all separate numbers. I tried to split . split(/[ .""]/g) but it didn’t work. What would be the equivalent…