Questions tagged as 'regex'

1
answer

Replace Return of Carriage and Line Feed CrLf in a Stream

I am reading a text file that has several CrLFs (at least 2 or more) and wishes to replace them with dashed lines or another character ... this image is taken from notepad ++ What I have tried is this code ... public static string Re...
asked by 14.12.2018 / 14:54
1
answer

Problem Regular expression

Good I need to take a number of some text string and I can not get the regular expression that I need here the example.    Hello, such # 4702665       Welcome 45454545 tal # 470815 BD. WA470815 I need only these numbers: # 470815 #...
asked by 05.12.2018 / 17:38
1
answer

REGEX email validator

The goal of my regex is to validate an mail address that may or may not exist according to the following parameters: does not contain characters other than letters, numbers, underscores, and @ only 1 @ before @, there must be be...
asked by 30.11.2018 / 16:57
1
answer

Regular Expressions. Help

I'm just getting into this from regular expressions. And I want to try to do as a word finder, to the most whatsapp style. What do you place to search for a word or letter and it shows you all the coincidences. The question is as follows. l...
asked by 27.11.2018 / 00:11
0
answers

Help with regular expression

I have tried, without success, to create a regular expression that allows me to differentiate values of a vector in R that have the following format "sb183107" "sb183108" "sb183124" "3989-15" "761-16" "3554-15" I've tried with [^\d-]...
asked by 21.11.2018 / 17:07
1
answer

problem with regex preg_match php

Good day to all, I have all day trying to solve how I do to find a match, for example, I have this chain $txt='1a.10.2a.210.22ac.23acd.24acd' I must validate that the value 23 is found, next to the letter C for example, but EVERYTHING among...
asked by 02.11.2018 / 00:07
3
answers

Multiple validation Regex in Laravel

I have a function that validates everything at Frontend level with Javascript but I also need to validate it in Backend with Laravel and Regex. The function is as follows: $('input[type=password]').keyup(function() { //Captura el valo...
asked by 07.11.2018 / 11:56
0
answers

Because regex is so slow

I recently had the need to validate some properties using Regex, after doing it, and see what refers to performance, I notice that it is much slower than, in my case (C #) perform a similar validation using linq For example (C #) List<st...
asked by 25.10.2018 / 14:24
1
answer

Separate a text by IFrames in PHP

I am trying to separate a text HTML containing iframes from a preg_split , and it does not come out. What I need is to create a array with texts e iframes . For example ['texto', 'iframe', 'iframe', 'texo']...
asked by 07.10.2018 / 13:25
1
answer

I need to formulate a regular expression that validates emails [closed]

I need to formulate a regular expression that validates emails in python (3) ..but I am a bit lost in the topic of regular expressions ... and I have read about the care that must be taken when using them .. thank you     
asked by 21.09.2018 / 22:10