Questions tagged as 'regex'

2
answers

Validate Name Form

I have a question with validation of html5, I have little knowledge with regex I need to validate a form that only gets: Upper and lower case letters, with accents and etc; White spaces; Can not accept only whitespace; Follow the code...
asked by 17.04.2017 / 23:19
2
answers

Regex - Regular Expression [closed]

I would like to know why the regular expressions I wrote are not correctly matching. The expressions are as follows: User name that must be unique and can not contain special characters ( %-$_#@ , for example), numbers or spaces, e...
asked by 14.01.2016 / 03:18
2
answers

Regex remove some elements of the style attribute

I need to keep only some properties of the style attribute in tags present in a string of an html document, they will be placed in a whitelist, everything else will be removed. In the example below: <TD class=xl76 style="BORDER-TOP: windowt...
asked by 22.06.2016 / 20:15
3
answers

Mount RegEx to validate password

Someone would know how to mount a regex to validate numeric and alphabetic sequences of at least 4 digits, type: 1111/1234 / abcd / 4321 / dcba?     
asked by 22.10.2015 / 15:37
1
answer

Return number with Regular Expression

I have a list of articles from Art. 1 through Art. 2040, but in each article there are other numbers. I would like to make an expression that: 1 - Capture the numbers always after the string "Art." Until the space after the number; 2 - Exclud...
asked by 22.04.2015 / 05:32
2
answers

C # Regular string expression and Guid validation

(1). I would like to validate a string, checking if it has only {a-z], [A-Z], [0-9], '-'} if(minhaString.ContemApenas({[a-z], [A-Z], [0-9], '-'}) == true) { // Minha string é válida! } (2). I need to also validate if such a string is a...
asked by 23.09.2015 / 21:38
2
answers

Check a character pattern for login

When using class Regex of C # I wanted the string nomeLogin Do not allow it to start with numbers or special characters. only allow "_" or "-" or "." as special characters. minimum of 2 characters being the first...
asked by 30.08.2015 / 21:39
2
answers

Regex in CPF with Laravel

The system I'm servicing has CPFs registered in two ways, with and without punctuation, due to poor start-up that did not impose a standard. The problem is that the CPF can not be repeated, and when the user types a CPF with no punctuation, if i...
asked by 03.03.2017 / 15:31
1
answer

Prevent character typing, if the monetary value is incorrect in delphi

My goal, using Delphi 10.1, is to compare the typed text in an Edit, at the time of typing a new character, if the text format after typing the key (which can be typed at the end, beginning or middle of the text existing ") would still" be "a va...
asked by 15.07.2018 / 03:19
1
answer

Do not accept duplicate values in a Regular Expression (Regex)

I have the following code: var str = "141271999 243306211 172266710 172266710 172266710"; var regex = /[0-9]{9}/g; //Encontrar 9 números entre 0-9 e retornar todos valores (g). var idsEncontrados = str.match(regex); How can I configure my...
asked by 22.05.2018 / 14:51