Questions tagged as 'regex'

2
answers

Check character to real-time character String by regular expression

I would like that while I write characters it should be checked if the new String complies with what in the regular expression is defined. I can say that the Strign is entering it in a TextField this is the regular expression - > "[0-9]...
asked by 05.12.2018 / 20:07
1
answer

Regular expressions

I'm working on an interpreter with regular expressions, right now I'm stuck, the problem is that I want to remember a pattern more than 1 time: ^(${name})${descrip.rules.skip}+(${descrip.rules.assig})${descrip.rules.skip}*(${name}|${type.decim...
asked by 11.10.2018 / 06:52
3
answers

Problem with validating URL with regular expressions in C #

I have a problem I have this regular expression: Regex Valida = new Regex(@"^(http|ftp|https|www)://([\w+?\.\w+])+([a-zA- Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\/\?\.\:\;\'\,]*)?$", RegexOptions.IgnoreCase); The problem is that it does not...
asked by 13.09.2018 / 19:23
1
answer

get a link to a search in php

I'm doing a php validator initially with a simple function. $url = $_POST['url']; $estado; $amp = file_get_contents("$url"); $buscar = "/amp"; $resul = strpos($amp, $buscar); if($resul!= false){ $estado= 'La página existe!'; }else{ $es...
asked by 13.09.2018 / 22:01
1
answer

Match error with regular expressions in preg_match_all

The problem is that making a match of each occurrence of a character regex of the string returns everything well, but the first result always lacks the last character. $string = "@user#12458 y @user2#12345 son dos apariciones";...
asked by 30.07.2018 / 20:31
1
answer

Regular expression in JavaScript to resolve a problem in a chat

I have the following problem, and that is that I have a chat to which I want to place a regular expression that substitutes a word for the nickname of the user who reads it. For example, I want to put a phrase that says !! user are reading th...
asked by 17.07.2018 / 05:42
1
answer

Get all texts without html tags and / or PHP with regex [duplicated]

I am looking to create a regular expression to get texts that do not contain html and / or PHP tags within a string. <div class="my_class"> <div class="copy"> © 2018 Texto </div> </div> So far,...
asked by 27.08.2018 / 16:43
2
answers

Obtain data from a regular expression

I have a problem trying to find out what my username and password are. I have a challenge to ask and they ask me to find my username and password based on a clue given by the following regular expression: [1-3]{0,4} Which gives me an int...
asked by 08.06.2018 / 15:20
1
answer

Regexp to validate shared URLs

I'm doing a Regexp that validates that the chain is a shared resource, for example \192.168.1.1\MiCarpeta\Mi subcarpeta I have taken part of the IP from the English forum /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[...
asked by 15.03.2018 / 17:28
1
answer

Parsear csv with problematic quotes

I have to read the following csv: ,codigo,nom,cognom ,111,michael,salinas ,222,"luis","doh, \”jik" ,333,ram,"Lak""\""""\""""\"" , ""\""“one" It is supposed to be 4 columns, but I have problems with the last row, to read the csv I am using a...
asked by 27.04.2017 / 18:44