Questions tagged as 'regex'

0
answers

Regular expression to remove certain content

I have some texts that are in HTML, which may have specific style attributes, I would like to make a method that removes these tags and their contents, since they are titles ... and specific images that must be filtered from HTML. Below I have a...
asked by 22.01.2018 / 13:12
0
answers

how to create a currency mask with regEx

Hello, I'm a beginner with angle 4, I'm trying to make a mask for a text field to validate a value in m². The class Mask contains the method to create the mask, the value informed can be between 1 and unlimited. I wanted the method to retu...
asked by 22.01.2018 / 19:23
0
answers

How do I sweep a string and bring different parts of it?

Using REGEX is it possible to "concatenate" masks to bring different parts of the same string? How do I sweep a string and bring different parts of it? I have a text field with the following information:    00200.035219 / 2012-15 (VOL...
asked by 26.01.2018 / 17:46
1
answer

Choose how many rows to display in the output

I'm trying to put a flag -n to be able to show in the output the number of lines wanted by the user, having until now only managed to show the line number next to it case "$1" in ## definir o pósprocessador -r) pp="shuf" ;;...
asked by 08.01.2018 / 22:27
1
answer

Postgresql Regular Expressions

Personal speech, I need some help I'm trying to make a trigger in postgresql that checks if the format of a new data being inserted into a table is in a certain format, in this case the phone format. I need the new phone to be inserted in...
asked by 07.12.2017 / 15:47
0
answers

Regex to check a string

I'm having trouble creating a regex, I'd like it to identify SP or sp or São paulo , then any other words and again check if it has, outro or Minas gerais (other states), in this sequence, example I already moun...
asked by 24.11.2017 / 12:16
1
answer

Multiple filters in a regex

I need to validate an input field that can have the following formats: 'D-1' ou 'D-10' ou 'D-1_1' ou 'D-10_1' ou 'D-1A' ou 'D-10A' Letters and numbers may vary, but will always have one of these formats.     
asked by 01.12.2017 / 01:22
1
answer

Find more than one default re python?

I'm trying to rename files using regex in python, with only one default works: def new_string(pattern): text = pattern.group().lower() renturn "{}_{}".format(text[0], text[1]) regex = re.compile(r"[a-z][A-Z]") for x in files: prin...
asked by 12.11.2017 / 17:08
1
answer

Regex - remove element

I want to delete all the characters except the last 3 letters that are capitalized. And another thing, how do I do several regex together?     
asked by 11.10.2017 / 23:44
0
answers

Query with special characters in an ObservableCollection

I've created a search method that receives text, and searches that text for a ObservableCollection previously filled in. private void btn_Pesquisar_Click(object sender, RoutedEventArgs e) { ObservableCollection<object...
asked by 04.09.2017 / 23:04