Skip to content

Instantly share code, notes, and snippets.

@danielgarciabsb
Created July 1, 2019 11:36
Show Gist options
  • Save danielgarciabsb/8f3afa232363a1d7352716f4bd1c7b6c to your computer and use it in GitHub Desktop.
Save danielgarciabsb/8f3afa232363a1d7352716f4bd1c7b6c to your computer and use it in GitHub Desktop.
Eliminar trecho da pesquisa: (?!trecho)
Exemplo: public(?!syncronized) static(.*) getInstance()
Pesquisar por todos que não são /swf: /PGPC/(?!swf)\w+
Detectar comentarios:
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/|[ \t]*//.*)
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)
([ \t]*//.*)
Detectar espaço: \s+
Detectar subgrupo de match:
integracao(.*)Delegate
integracao$1ServicoEJB (nesse caso $1 é o que detectar entre integracao e Delegate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment