Questions tagged as 'regex'

1
answer

Validate a Matcher

Good afternoon. I would like to know how to check if matcher found something. Because I am searching for information inside a PDF file and when it does not find anything I would like to have a condition that says "Information not found" w...
asked by 24.06.2016 / 19:11
1
answer

Regex with STD :: REGEX in C ++

I'm developing a C ++ system that needs to get some information from a String using regular expression, I'm using a regular expression that I've used in PHP perfectly, but in C ++ it returns blank. const std::string s = "{{ teste }}"; std::str...
asked by 14.04.2016 / 00:32
1
answer

Htaccess does not correctly validate the redirect rule

It has in htaccess where regex works perfectly with no numbers in the rule, but with numbers not working correctly. RewriteRule ^([a-zA-Z]{1,20})-to-([a-zA-Z]{1,20})-([a-zA-Z0-9-]{1,30})\/?$ page.php?ti=$1&at=$2&pl=$3 [NC,L]//linha...
asked by 07.04.2016 / 05:21
1
answer

With breaking a base64 string and assigning input fields

I have a very large base64 string and need to break there in multiplus up to 20 thousand characters not to errors when sending it via hidden field. Each broken piece will be sent in separate inputs and can not create the input via javascript, I...
asked by 04.03.2016 / 15:59
1
answer

.htaccess - Friendly URLs with special characters

I have the following line: RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1 I needed it to accept the characters @ : = ! ? How can I do this?     
asked by 02.04.2016 / 00:25
1
answer

How to get these lines and blocks?

I'm creating a parser of a language I'm developing, I'm having trouble separating lines and blocks from code, here's the code I use to return the lines: Friend Class Splitter Public Itens As New List(Of String) Private CurrentIndex As...
asked by 13.02.2016 / 01:58
2
answers

Regular expression to get Youtube link in text

I have text in wordpress and this text has a link to youtube:    Health "every Monday, at 9:15 am, with a repeat of the   Fridays, from 1 pm During the   attraction, the presenter usually receives health professionals to   feeding, medicatio...
asked by 08.10.2015 / 14:42
1
answer

Search REGEXP in json does not work correctly when used string with parentheses

I created a regular expression that does a search in JSON for the name and value of the field, but does not work correctly when the fetched value contains parentheses, like a DDD for example, so in this case the search ignores the parentheses...
asked by 14.05.2015 / 09:10
1
answer

Multiple terms in regular expression

I need to search for some specific words in a text. I'm using ER for this. However, since I need to search for more than one word, in some cases the result is unsatisfactory. Below is the ER that I am trying to use (I need to look for other word...
asked by 02.07.2015 / 22:43
1
answer

I need to retrieve information from a page. How can I continue what I started?

<?php header('Content-Type: text/html; charset=utf-8'); $ch = curl_init(); $timeout = 0; curl_setopt($ch, CURLOPT_URL, 'http://www.cidades.ibge.gov.br/xtras/uf.php?lang=&coduf=17&search=tocantins'); curl_setopt($ch, CURLOPT_RETURNTR...
asked by 16.02.2015 / 17:11