Questions tagged as 'regex'

1
answer

Regex words in lower case

I have a Regex that removes characters that are not letters or space, for a Python application. Ex: var = re.sub('[^a-zA-Z \\]', '', "abc Abc aBC cde123 def-ghi $?!123") Returning: abc Abc aBC cde defghi I also need to return everythin...
asked by 05.11.2018 / 21:11
2
answers

How to create regex that accepts only characters with no accents

In my form html , I have the "name" field. In this field, I want to allow the field to accept only characters with no accents. How to do this validation using Regex? I do not want a function, I want to put an attribute type in the field...
asked by 22.05.2018 / 15:18
1
answer

Regular expressions in pyhton

How can I read a file in python by looking for words that fit into a regular expression, eg searching for dates (dd / mm / yyyy)?     
asked by 27.03.2018 / 12:48
1
answer

How to select an image link text (html) and erase everything else with Regex?

I'm working with a CSV (XML type) file, I'm using a google spreadsheet to clean the data, I'd like to edit a set of cells by making a selection of an image link in html and delete all the rest of the cell using Regex. The google spreadsheet h...
asked by 17.04.2018 / 02:26
2
answers

Ignore any white space in the middle of a string

I'm trying to create a regex that is able to find a string in a text even though there is some white space in the middle of the words. For example, I search the text for the following excerpts "impaired conciliation" or even "irreconcilable"...
asked by 30.01.2018 / 16:29
1
answer

Autocomplete with two data types

How do I load two data types into the same input that is receiving an autocomplete (EayAutocomplete plugin). I would like to appear the options by cnpj number and company name. No regular expressions, could someone help? Follow the html: &l...
asked by 17.11.2017 / 20:37
1
answer

How to mount a regex?

I'm setting up a bot for rocketchat to turn on and off machines in google cloud, I need to mount a regex that covers the words turnon and turnoff. Could someone help me with this?     
asked by 27.11.2017 / 14:27
1
answer

I need to go through the data of several txt, take specific data and generate a csv

I'm already browsing the files and accessing the data, but I need to get what's after the following line: Initial P.A.C. () P.A.C. () Match amount due 3a. part contemplation due due payment effected Balance Sopave to the top line of this d...
asked by 04.02.2018 / 00:27
1
answer

Regular expression to remove images that contain an inline-style height range

How could I improve this regular expression to remove images that range from 29 to 45: [0-9]{29, 45} ? My expression: <img.+?(style=\".+?height:(29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45)%;.+?\")[^>]*> When I trie...
asked by 10.11.2017 / 14:09
1
answer

Validate and capture sequence numbers

I have this string: 16-8-10-20-30-65 The numbers are random and this is just an example. I need a regular expression that validates this sequence, capture all the numbers before 65, including minus signs and excluding the last sign...
asked by 22.07.2017 / 16:33