Questions tagged as 'regex'

1
answer

Handle exception when doing replace of string via JavaScript

I created a simple JavaScript function to replace any string with a link within an area in my html. Until then I pass some parameters and this function does a replace in my html and inserted the links as desired. But now I need to handle some...
asked by 28.08.2015 / 18:37
1
answer

Validate URL Regular expression

I would like to know the following, I have a regular expression to validate URLs, but I would like that besides validating the URL, it would release if the URL is empty or with blanks: I think the idea was this, but when I run Delphi, empty U...
asked by 09.08.2015 / 13:49
1
answer

Problem with a field in RegEX

I have the following expression: (?!.*"); It captures anything separated by the ; character except when it is within a string. Here's an example: ABC; #captura o último ; 123; #captura o último ; "XYZ";...
asked by 13.07.2015 / 00:25
1
answer

Difficulty getting information through Regular Expressions

I'm having trouble getting information using preg_match_all . This information is being taken from an HTML code of an intranet page, but from the information I need, I am only able to collect one. Here is a piece of code that contain...
asked by 02.07.2015 / 19:41
1
answer

Convert JSoup doc to string, apply Regex, and return a value in String

I'm using an example I found called AndroidJsoup to get the source HTML of a certain page, but I'm not getting just the code snippet I want that is in a certain% In short, AndroidJsoup should run, taking <script> , appl...
asked by 17.06.2015 / 02:13
1
answer

How to do Split in some specific excepting lines?

I want to make a dynamic list that uses Regex.Split separating each item by the new line character, except when in the (...) fields in my lines of code, as follows: var x = 'the quick fox jumps over the lazy dog' var n = 'myChar (st...
asked by 29.07.2015 / 00:15
1
answer

MYSQL - Return occurrences closer to REGEXP

I need to return the number of occurrences closest to REGEXP, see the example below: SELECT * FROM tabela WHERE nome_produto REGEXP 'vestido|longo|manga|curta' The idea is that this query returns me like this Long sleeves with short sle...
asked by 28.04.2015 / 00:36
1
answer

Search by names within a text

I have text where I need to search by names. The text has no pattern. The list of names is an array. So far I have managed to do it normally, but I came across a situation where a given name had a variant and the same was not found - because I a...
asked by 03.07.2015 / 22:50
1
answer

Get value from a Span field with cURL Parser

I have a question and a problem. Well it's the following with cURL I login beauty up so far .. ok but I need to get some information that is inside the html: <span id="Number">12345678993</span> <span id="holderName">RAFAELA...
asked by 05.02.2015 / 21:21
2
answers

Parse HTML regex problem

Well the doubt I have is the following, I need to get the following HTML snippet below: HTML: <section class="ovw-summary"> <div class="ovw-summary__balance balance-amounts"> <head...
asked by 07.03.2015 / 00:04