Created
April 12, 2021 19:55
-
-
Save edupooter/96e36d1b55a8dd83c519ee8005fd2a04 to your computer and use it in GitHub Desktop.
Substituição de texto com Expressões Regulares
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Funciona no VSCode e no Notepad++ | |
Localizar: ^(\d+);(\w.*);(\w.*) | |
Substituir: {"id": "$1", "name": "$2", "email": "$3"}, | |
Fonte: | |
23262626;Eduardo Silva;eduardosilva@gmail.com | |
23262323;Maria Silva;mariasilva@gmail.com | |
23262655;Carlos Silva;carlossilva@gmail.com | |
23262678;Roberto Teixeira;rob.teixeira@gmail.com | |
23262690;Denise D'Avila;deavila@gmail.com | |
Resultado: | |
{"id": "23262626", "name": "Eduardo Silva", "email": "eduardosilva@gmail.com"}, | |
{"id": "23262323", "name": "Maria Silva", "email": "mariasilva@gmail.com"}, | |
{"id": "23262655", "name": "Carlos Silva", "email": "carlossilva@gmail.com"}, | |
{"id": "23262678", "name": "Roberto Teixeira", "email": "rob.teixeira@gmail.com"}, | |
{"id": "23262690", "name": "Denise D'Avila", "email": "deavila@gmail.com"}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment