Created
January 1, 2018 19:17
-
-
Save blaggacao/60c2004d1af9766f8ae95e0ea68680f0 to your computer and use it in GitHub Desktop.
My dirty data 2
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
{ | |
"alwaysShowComment": false, | |
"preview": false, | |
"params": { | |
"matching": "PATTERN", | |
"stopAfterFirstMatch": false, | |
"appliesTo": "COLUMNS", | |
"normalization": "EXACT", | |
"columns": [ | |
"DIR,C,60" | |
], | |
"mapping": [ | |
{ | |
"to": "# $2$1 ", | |
"from": "# ([a-z]) {0,1}(\\d+?) " | |
}, | |
{ | |
"to": "$1 $2 $3 # $4 - $5 $6", | |
"from": "^(avenida calle|avenida carrera|autopista|avenida|circular|calle|diagonal|carrera|transversal|bulevar|carretera|cuentas corridas|pasaje|paseo|peatonal|troncal|variante|via) ((?:\\d{1,4}(?: {0,1}?[a-z]{0,2}?| {0,1}[a-z][0-9][a-z])(?: {0,1}bis(?: {0,1}[a-z]{1,2}| {0,1}[a-z][0-9][a-z]|)|)|.*?\\b.*\\b))(?: {0,1}(norte|sur|oeste|este)|)(?: # | #| )(\\d{1,4}(?: {0,1}[a-z]{1,2}| {0,1}[a-z][0-9][a-z]|)(?: {0,1}bis(?: {0,1}?[a-z]{0,2}?| {0,1}[a-z][0-9][a-z])|))(?: - |- | -|-| )(\\d{1,4}(?: {0,1}(norte|sur|oeste|este)|)).*$" | |
}, | |
{ | |
"to": " ", | |
"from": "\\s{2,6}" | |
}, | |
{ | |
"to": "$1 $2 $3 # $4 - $6 $5", | |
"from": "^(avenida calle|avenida carrera|autopista|avenida|circular|calle|diagonal|carrera|transversal|bulevar|carretera|cuentas corridas|pasaje|paseo|peatonal|troncal|variante|via) ((?:\\d{1,4}(?: {0,1}?[a-z]{0,2}?| {0,1}[a-z][0-9][a-z])(?: {0,1}bis(?: {0,1}[a-z]{1,2}| {0,1}[a-z][0-9][a-z]|)|)|.*?\\b.*\\b))(?: {0,1}(norte|sur|oeste|este)|)(?: # | #| )(\\d{1,4}(?: {0,1}[a-z]{1,2}| {0,1}[a-z][0-9][a-z]|)(?: {0,1}bis(?: {0,1}?[a-z]{0,2}?| {0,1}[a-z][0-9][a-z])|)) (norte|sur|oeste|este)(?: - |- | -|-| )(\\d{1,4})" | |
}, | |
{ | |
"to": " ", | |
"from": "\\s{2,5}" | |
} | |
], | |
"output": "" | |
}, | |
"type": "FindReplace", | |
"disabled": false, | |
"metaType": "PROCESSOR" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment