Questions tagged as 'regex'

1
answer

Capture the data corresponding to the index in the bank

I was able to feed my listview with SQLite data, however, I now want to capture the data (in the database) that each row in the listview matches. For example: Line 10 displays Code 1 and Name: Philip Line 13 displays Code 4 and Name: Giov...
asked by 13.01.2017 / 20:28
2
answers

How can I create a regular expression that accepts a certain number at most once

I'm learning how to use Regex and would like to know if I can get it to accept a maximum of 2 in some sequence (it may contain letters or numbers) Eg: "sskfdam09471928" Approved "asldk02210920139" Disapproved by repeating twice     
asked by 03.07.2018 / 23:05
5
answers

Regex to capture dimensions of a product with unit of measure

I have a function in python to capture the dimensions of a product in LxCxA format but I can not make it work for cases where the unit of measure appears between the values, the regex is this here: def findDimensions(text): p = re.compile(...
asked by 29.06.2018 / 22:04
4
answers

Validate phone number with optional ninth digit

How do I validate my phone number with the optional ninth digit? in the following formats: DDD + 8 digits = (21) 9876-5432 DDD + 9 digits = (21) 98765-4321     
asked by 19.11.2016 / 05:45
4
answers

Regex to capture infinite groups in a URL separating them by the slash

I would like to know how I could do a regex to capture multiple groups as demonstrated in the string below: / Controller / Action / Param1 / Param2 / Param3 / ... I want to catch "Controller", "Action", "...
asked by 24.02.2017 / 02:16
7
answers

Capture year that is outside the regex

I'm working with a text file using sublime I want to replace some strings where: I have several strings like this: EMISSAO="2016-04-18 00:00:00" I need a regex that captures where the year is invalid, eg: In some registers it...
asked by 02.03.2017 / 18:21
2
answers

Regular expression 6 decimal places

Can someone tell me if it is possible to create a regular expression with the following features: value between 31.000000 and 43.000000 The value may have 6 decimal places, but should be in the range of 31 to 43. What I have is the foll...
asked by 13.02.2018 / 15:25
3
answers

How to remove accented expressions with regular expressions in Python?

I'm developing a regular expression to try to replace accents and characters with ç by normal characters Example: á = a ç = c é = e But my regex is only eliminating, any tips? import re string_velha = ("Olá você está ???? ") st...
asked by 21.09.2018 / 19:40
5
answers

How to select with Regular Expression a full xml / html tag even though there are equal tags internally?

I'm trying to do the following treatment in a string in javascript using ER (Regular Expression): With this input: um <b>negrito<b>negrito interno</b>externo</b> aqui <b>negrito</b> <i>italico</...
asked by 12.06.2015 / 14:48
2
answers

Make Regex.Split in between "..."

What regular expression do I use to get the comma character that is not within the "..." fields, eg: line1, "line2", "hello,world", 215, X + Y ^ ^ ^ ^ I want to get only the referrals, I'm using the expres...
asked by 15.02.2016 / 01:06