I was analyzing an extensive html code that basically contains this format:
<span id="mensagem" class="topo">Classes e comandos</span>
The problem is that the amount of arguments within span vary in quantity and position
The...
For example: a regex that finds correpondencia in the string "coin" but that also finds correspondence in the string (m, .o, and d ... a). In other words, it ignores non-alphanumeric characters regardless of position or quantity.
NOTE: I CAN...
When using the negation operator, I want to get only the part of the text that does not contain the previously denied group.
Using the expression ( ?<br\/?> ?)(Unit.) , I get the following result :
Whenyouaddthenegationoperat...
I want to make patterns like this:
[a-z]+[acentos] || [a-z]+[acentos]+[espaço]+[a-z]+[acentos] || [a-z]+[acentos]+[-]+[a-z]+[acentos]
To be able to register a word, you must be within one of these patterns.
For example:
téstê || téstê...
I get lost while doing any complex regex.
I use the following code in java:
Pattern pattern = Pattern.compile("tentativas de regex aki");
Matcher matcher = pattern.matcher(conteudo);
while(matcher.find()) {
System.out.println(matcher.gro...
I'm working on a vb.net MVC system and need to detect the browser and version.
I'll only use Chrome, and IE9 +.
I would like to know if I can simplify the verification structure using Regex.
Below is the excerpt that I use to do the verifi...
I need to search in MySQL, lines where a particular field, for example 'Name', is filled with only special characters or spaces.
I tried several REGEX for this, but without success.
Could anyone help me?
Hello, I have the following code, but I need to apply a replace to output ( FileOutputStream ) I get via http before saving it.
public void DownloadFile(String fileURL, String fileName) {
new Thread(new R...
According to the PHP Manual, the preg_grep function returns the entries of a array that match the regular expression.
Example
$array = [
'Banana',
'Maçã',
'Café',
'Biscoito',
];
$array_com_B = preg_grep('/^B/i...