Questions tagged as 'regex'

1
answer

Query to return text from the middle of a field

I have a query that returns some class names / disciplines , however I wanted it to bring me just the names of the disciplines . Below is the result of the query with the [class] [discipline_name] [branch]: ADM N1A OFFICIAL COMMUNICATION...
asked by 09.02.2018 / 22:35
1
answer

Remove duplicate characters in string if it is not a digraph

How to remove duplicate characters in a string, if not a digraph (rr, ss) using Regex? Ex:    Oiiiii = > Hi       Aloooo = > Alo       Past = > Past       Carroooo = > Car If rr or ss appears at the beginning...
asked by 21.04.2018 / 20:56
1
answer

Regex for addresses (Streets, Avenues and Etc)

I need a regex that takes the cases that have number in the name of the address and also normal address. Number always ends after address. Example: R March 25, 200. I need the address that would be: R March 25 E and address number: 200 Reg...
asked by 06.04.2018 / 17:26
1
answer

mounting a RegEx

I'm picking up a bit here to mount the Regex of a pattern I put together, which would be this: ALTERAC[AO,OES] [DE] CADASTRO[S] [-] SOCIAL What is between [ ] is what can vary. The doubt is that in the words "DE" and "-" may or m...
asked by 05.04.2018 / 16:11
1
answer

validating only .com.br regex

Personnel was modifying a regex to validate only specific domains that end with yahoo.com.br, terra.com.br, bol.com.br, hotmail.com.br. So gmail.com, or Provider.net.br would be invalid. Then I made the regex below: const std::regex pattern...
asked by 17.12.2017 / 05:27
1
answer

Python - Split words delimited by white space or bracket

I have a string with several words inside, some words are separated by space, but some are compound words and are protected by brackets. EX: string="Goiânia Vitória Brasília [Campo Grande] Fortaleza [São Paulo] Manaus" I need to separat...
asked by 10.12.2017 / 21:36
5
answers

Regex with JavaScript - Taking only part of String

Let's say I have the following string: str = "http://www.google.com/joao.pedro?a=b"; So I want to get just john.pedro using JavaScript . I think you can do with Regex somehow, can anyone help me how? I thought of something like,...
asked by 01.03.2018 / 04:28
1
answer

Return regular expression value

I have the following string: [11:36:19] Touched down at -56 fpm, gear lever: down, pitch: 3, roll: level, 116 kts And I'm trying a regular expression to get the value 116 kts, and the string does not have a fixed number of words. My expr...
asked by 11.10.2017 / 04:54
1
answer

Increase content found by regex and increment with other strings

I need more help with regex, how do I find a text in a particular pattern and include something next to the string that it found. EX: "programacao": "11h Abertura – Som Mecânico 12h30 Lino e Orquestra 15h30 Volkstanzgruppe Blauer Berg - Timbó...
asked by 27.09.2017 / 20:29
1
answer

Regular expression that prevents SQL Injection

I'm looking for some way to avoid SQL Injection on the system I'm developing. Is there any regular expression that perceives the attempt of a possible SQL Injection attempt? Do you know any other way to avoid it? Sometimes there may even b...
asked by 08.06.2017 / 16:54