Questions tagged as 'regex'

2
answers

Delete content with Regular Expressions - Regex

I wanted to ask you a question about how you can delete a content with Regular Expressions. I am adding this regular expression, but the problem I have is that it does not know in which DIV it must close. And therefore you eat almost all my cont...
asked by 18.08.2018 / 12:11
2
answers

How to identify values in a string

We are making validators of expressions which are loaded in a database. The challenge is to take that expression, for example: Objeto.getNombreFuncion("123").getAttribute("Nombre_Etiqueta") && Objeto.getNombreFuncion("Otra_Etiqueta")....
asked by 12.08.2018 / 00:05
1
answer

Search http or https with a regular expression and within that expression you can place a PHP variable

If someone could help me, I'm not very good with regular expressions, this is what I have so far: $variable=www.ejemplo.com/archivo $url_search='^(http:\/\/|https:\/\/)?'.$variable; url_search: Lo uso para buscar y reemplazar dentro de str_r...
asked by 09.07.2018 / 20:35
1
answer

help with regular PHP expression

I have the following code: $tiempo= shell_exec(" curl -o /dev/null -w 'Conexión: %{time_connect} FB: % {time_starttransfer} Tiempo Total: %{time_total} \n' " . $dominio); echo "<br>"; echo "Tiempos de carga: ". $tiempo; $conexio...
asked by 07.06.2018 / 20:43
1
answer

Regular expressions in AJax requests

I have a REST request that returns a json with values {"Meta Data":{"1. Information":"Intraday (1min) prices and volumes","2. Symbol":"MSFT","3. Last Refreshed":"2018-05-30 16:00:00","4. Interval":"1min","5. Output Size":"Compact","6. Time Zon...
asked by 31.05.2018 / 21:07
0
answers

How to Validate TextBox content with pattern?

Valid with the following method in C # with a WPF window a text that should only accept valid names, as well as accept 2 names but no more, such as the following: Correct examples: Alejandro Richard Yordy Erroneous examples:...
asked by 18.04.2018 / 01:37
1
answer

How to validate that there is not a minimum of characters but a maximum?

I am preparing a regular expression: [a-zA-Z0-9._-]{20} So far I am with the previous part of the "@" of an email and I am trying to do something like this: [a-zA-Z0-9._-]{"*"-20} Where "*" appears, I try to put it to not have a minimu...
asked by 29.11.2017 / 19:30
1
answer

How to have friendly URLs (.htaccess in apache) with Lighttpd?

I have this .htaccess file: (#)impedir que se pueda ver el listado de contenidos de un directorio Options All -Indexes (#)URL amigables (#)activar RewriteEngine RewriteEngine on RewriteRule ^(\w+)$ index.php?accion=$1 RewriteRule ^(.*)&(.*...
asked by 11.11.2017 / 00:09
6
answers

Validate an email in JavaScript that accepts all Latin characters

Question How to validate an e-mail that accepts all Latin characters? By Latin characters I mean accented letters, ñ , ç , and all those used by languages such as Spanish, Portuguese, Italian ... Latin. Context The goal...
asked by 01.12.2015 / 21:55
2
answers

Pattern for notes

good evening. I have the following code: pattern="[1-7]{1}(?:\.[0-9]{1,2})?" The idea is that you can only place notes from 1 to 7 and thus 4.5. But with that code I'm allowed 7.5 for example. How can I do it so that the maximum score is...
asked by 19.06.2017 / 03:51