0
I could use some help in a regex. I need to beat streets at the base of the post office, but because of the prepositions many streets are not found.
Example:
Input file = STREET BEACH OF ARMACAO
Post Office Base = RUA PRAIA OF ARMACAO
Output file = Patio not found
I need a regex that ignores prepositions and looks for everything before and after it.
I managed to reach the expression that returns the prepositions ( sde s| sda s| sdo s).
But when I put the negation (?! sde s| sdo s), nothing returns.
No need to be anything for a specific language, running in text editor is already OK for what I need. The search of the street will be done by Stringreplacer FME (image below).
What language are you using? post your relevant code
– Costamilam
@Guilhermecostamilam is not for any specific language. Working in the text editor is already OK for what I need. The search will be done in FME using Stringreplacer.
– Fernando Correa
Say which engine regular expression is important. If not, the respondent can give a valid answer to
sed
but not valid in, I don’t know,PCRE
. Or whateverPCRE
but not recognized by Eclipse. (PS: were examples, do not know the compatibility ofsed
withPCRE
nor with Eclipse/regex Java)– Jefferson Quesado
Please put the list of the streets in a text table. You can use this website.
– danieltakeshi