Questions tagged as 'regex'

2
answers

Regular expression with termination specifies to bring 3 first characters

I'm trying to do a regular expression in Oracle with the following requirement: Finish with a specific letter, if you have that letter in the middle do not search. Return the first 3 digits of the string. To solve the first problem I ca...
asked by 15.03.2017 / 14:04
1
answer

Regular Expression in Java

I'm programming in Java and need to filter a String from a regex using the matches() method. I can accept letters (a-z) or numbers (0-9), where this number can have 1 or n digits. I'm using the following regex: [A-Z|a-z|\d{n} ] ....
asked by 07.06.2014 / 03:01
2
answers

Find string inside a php tag

When using in several types of embed from several sites, and go get only the link. For example: Youtube: <iframe width="420" height="315" src="https://www.youtube.com/embed/HLhuNbO0egU"frameborder="0" allowfullscreen></iframe>...
asked by 23.11.2015 / 11:11
1
answer

Make text editor with syntax highlight

How can I make a syntax highlighting HTML system for a text editor? I thought of using a <pre> tag with contenteditable="true" , so using RegEx I would override the syntaxes of contentText, and would modify the innerHTML ... B...
asked by 19.08.2015 / 03:15
3
answers

How to deal with upper and lower case letters along with Symbols

I have the following snippet running cute: function busca() { var str = document.getElementById('txt').value; if(document.getElementById(str)) console.log(str + ' existe.'); else console.log(str + ' ñ existe'); }...
asked by 13.04.2017 / 12:46
1
answer

Sort a vector of texts using regular expressions using R

Let's say I have the following text vector ( character ): d <- data.frame(id=1:3, txt=c('Um gato e um cachorro', 'Cachorros jogam bola usando alpargatas', 'gatinhos cospem...
asked by 03.10.2014 / 21:18
1
answer

How to use escape characters in a C # string?

I am not able to scan a file containing the EICAR (Standard File for Anti-Virus Scanning) characters, because it contains escape characters such as "\", "()", "[]". I need help identifying these characters in my program as being normal inside a...
asked by 17.10.2014 / 02:49
2
answers

Filter string REGEX C #

I have a string that returns all the contents of a html page. On this page, you have the following line: <input style="width: 2.3em;" id="nacional" value="3,48" type="text"> I need only the value that is in value , that is,...
asked by 11.05.2016 / 03:41
2
answers

Add strings to a regular expression

Good evening, I would like to find a way to add two strings inside a regular expression using php . Ex: $texto = " |5,00|7,00|| |10,00|2,00|| |3,00|30,00||"; ...('/\|(.*)\|(.*)\|/', '|$1|$2|[X=$1+$2]', $texto); I've been searching, bu...
asked by 21.12.2017 / 03:53
2
answers

Filter filenames in uppercase and with a certain length at the end

I have some files named with person names, but some are completely capitalized, others completely in lowercase and some even with mixed case. I would like to set up a regex to filter only those file names that were totally uppercase, without...
asked by 25.07.2017 / 13:00