Questions tagged as 'regex'

1
answer

Is denying access even with normal characters

This command line is not letting my form access the database even with all normal characters. Anyone who understands more than preg_match can help me? if(!preg_match("/^[a-zA-Z]*$",$name)||!preg_match("/^[a-zA-Z]*$",$title)||!preg_match...
asked by 30.08.2017 / 05:49
1
answer

Regular expression query, data from a url

I have these URLs veiculos-sao-paulo-__4--6--.html veiculos-parana__4--6--.html veiculos-rio-de-janeiro-__4--6--.html With this regular expression: ^veiculos-([a-zA-Z-]+)__.+\.html? I get the group $ 1 with the following outputs:...
asked by 14.08.2017 / 22:22
1
answer

Mechanize with Nokogiri: trying to fetch information in divs

Hello I am setting up a crawler to get product information, for this I am using the mechanize and consequently the nokogiri, I have a URL ( link ) that returns only one product, but I can not hit the regular expression to get the price of tha...
asked by 26.07.2017 / 23:02
1
answer

Regex function whitespace SQL Server 2008 [duplicate]

Hello, Within a specific table in my DB, I have certain fields that have been registered by others, so some fields instead of having a simple space ' ' , have spaces of the most diverse types! I do the Javascript treatment as follows:...
asked by 17.07.2017 / 16:16
0
answers

Character removal on Heroku server

I have the following code snippet for special character override public String removerAcentos(String str) { return Normalizer.normalize(str.replaceAll(" ", ""), Normalizer.Form.NFD).replaceAll("[^\p{ASCII}]", ""); } When I run on my mac...
asked by 12.05.2017 / 16:14
1
answer

Filter elements with RadioButton in HTML and JS and RegEx

I have the following problem. I have 3 elements label and I want, according to the radiobutton option chosen to filter them. The problem is that when I want to filter by the name that ends in -ivo does not work, but the rest doe...
asked by 23.03.2017 / 16:42
1
answer

Select an xml code snippet with regex

I need some help again with Regex! I need to edit an xml file and insert a sequence of instructions after a given information. But I can not select all the information I need. I need to select the following information: <testerconfirmat...
asked by 20.03.2017 / 13:27
1
answer

Regular expression in XML string

Hello, I'm using a PHP library to generate a few words with some parameters. The library is PHPWord, when I load a file (DOCX) it opens the document.xml file inside the compressed DOCX file.    Example: <?php $phpWord = new PHPWord('...
asked by 04.02.2017 / 20:35
2
answers

How to find a "div" with text "Age:" and only bring the number with bs4 and regex python3

I'm trying to extract the age value from the following tag, but from several html files with the same structure. <div class="col-md-12"> <div class="section-title line-style"> <h3 class="title...
asked by 31.10.2016 / 15:39
0
answers

Modify batch HTML code in * .sql file

I have a file in * .sql. I needed to batch convert HTML codes with links like this below: <img src="http://www.sintaema.org.br/site/wp-content/uploads/bomba-456-copy_832-1-pdf-724x1024.jpg"alt="bomba 456 copy_832 1" />' To look like t...
asked by 20.09.2016 / 23:49