Tags » Regex

Dica rápida: Preparar pesquisa em regex com caracteres especiais

Algumas dicas que vou compartilhar se resolvem com dois ou três trechos de códigos e vou usando gists para isso.

O código a seguir me ajudou a fazer pesquisa em mongo sem considerar se a palavra estava com ou sem assento usuais em português. 29 more words

How to...Regex

A regex is composed of two parts:

  • Metacharacters alias, special characters
  • Literal alias what to match

Let’s see some metacharacters

^ means start of the line. 262 more words

Senza Categoria

Perl %

#!/usr/local/bin/perl -w
print “Type a sentence of mix cases to find the words starting with Upper Case:\n”;
while ($inputline = <STDIN>)
while ($inputline =~ /\b\S+/g) … 97 more words

Python example : Test script / module using regex

This is a simple piece of code to test if sys.argv[1] matches a file type using a regex to match a specific file type, in this case *.flac (it doesn’t actual check to see if the file is an actual Flac file, just that it is named correctly). 263 more words

Append Python Path

JAVA Regex or JAVA - Regular Expression

 JAVA  Regex or JAVA – Regular Expression

The Java Regex or Regular Expression is an API to define pattern for searching or manipulating
strings. It is widely used to define constraint on strings such as password and email validation. 73 more words


Removing HTML Tags with Regular Expressions

PeopleSoft allows course descriptions to be formatted in RTF. The user is presented with a WYSIWYG editor, and the database stores the appropriate HTML tags. While great for users, this makes reporting difficult. 194 more words


Filebeat with multiline single event

I recently came back from Elastic{ON} 2016. Filebeat and Beats in general was the highlight of the conference.

Beats in one of the newer product in elastic stack. 577 more words

Big Data