Questions tagged as 'regex'

1
answer

Check variation of words in a sentence with RegExp

I have a code that verifies phrases that the user types and was tried more without much success, make a code using RegExp to verify that the user entered a certain phrase without or with variations of words. / p> Example: "I use Facebook"...
asked by 30.07.2014 / 05:17
1
answer

SUBSTRING_INDEX with REGEX

How can I do a search for the last name of a people but with a regular expression? Today I use SUBSTRING_INDEX to get the last name , but I want to get parts of this last name when I search by name or fragments of people I am using...
asked by 11.04.2014 / 16:44
1
answer

JSON Regular Expression and Deserialization Dictionary

I'm developing a system that receives JSON from multiple layouts over a single channel, and the Router class must identify which layout is handled by regular expression and perform deserialization for the correct class. In the prototype I use...
asked by 27.09.2018 / 15:45
1
answer

Problem catching the title of a URL using regular expression

I'm learning Go language on the competition side. I was challenged to use the default generator to get a channel that reads the title of a URL through a goroutine. Inside this goroutine that I mounted, the reading is performed through the GET...
asked by 07.10.2018 / 19:10
0
answers

Regex match per point with exceptions

I have the following regex: (?! ).*?[|.!?:;\b\t\n](?![|.!?:;\b\t\n]|(\.\d))(?<!\bDr\.|\bINC\.|\binc\.|\bInc\.|\bNO\.|\bNo\.|\bno\.|\bN\.|\bn\.|\bReg\|\breg\.|\bREG\.|\bCo\.|\bDra\.|\bSrs\.|\bSr\.|\bSra\.|\bSra\.|\bFl\.|S\.|A\.|\bSras\.|\&am...
asked by 28.08.2018 / 03:08
0
answers

How to use group denial

With the following RegExp I can capture the valid group. ^(\d+(,\d+)*)$ However, the capture must obtain invalid groups, as an example: # Válido 12312,12312312,312312,1,3 1,2,3 999,999 # Inválido ,12312.* 123,12312,,12312312 asdasd,123...
asked by 12.07.2018 / 19:02
0
answers

How to color part of a text inside the input using REGEX or if you have a VUEJS plugin

My problem is the following I have an input with the text. Eg: "I'll add this new text". When the text is selected I change it to be enclosed in braces. Eg: "I will add this new text". UNTIL HERE I GOT But I need to change everywhe...
asked by 05.06.2018 / 14:07
2
answers

Filtering element codes

Talk, guys .. Blz? I have a question here. I'm developing a chat app in vue, and let's say I send or receive a message like this: msg = "Oi, fulano. Acesse esse <a href="link">link</a> e digite <span>Meu nome é <a href...
asked by 10.06.2018 / 20:00
1
answer

Remove content between two files

I have two files. One file contains words as if it were a dictionary and another file contains records of Logs. I would like the file containing the information (Dictionaries) to be removed from the Log file. Remove the entire log line and not j...
asked by 15.05.2018 / 16:57
1
answer

REGEX - deny prepositions in the name of public places

I'm needing help with a regex. I need to hit sites at the base of the Post Office, but because of the prepositions many places are not found. Example: ARMACAO STREET STREET STREET STREET Mailbox = STREET BEACH FROM ARMACAO Outbou...
asked by 22.03.2018 / 15:55