Â
Â
Text to Find:Â FAIRFIELD WORKS, FAIRFIELD, AL 35064Â
Replacement Text: FAIRAÂ
Use regular Expressions: NoÂ
Case Sensitive: NoÂ
Â
How can I get rid of 35064.Â
Â
thanksÂ
DanÂ
Â
Text to Find:Â FAIRFIELD WORKS, FAIRFIELD, AL 35064Â
Replacement Text: FAIRAÂ
Use regular Expressions: NoÂ
Case Sensitive: NoÂ
Â
How can I get rid of 35064.Â
Â
thanksÂ
DanÂ
Â
Use regular Expressions: YESÂ
Â
expose or use creator or renamer on "matched_parts{0}"Â
ÂÂ
Â
Please check the input attribute value.Â
If the attribute stores "FAIRFIELD WORKS, FAIRFIELD, AL 35064 35064" (the number is duplicated), the resulting string will be "FAIRA 35064" naturally.ÂÂ
Â
TakashiÂ
Â
i changed the regexp to (Âa-zA-Z,\\s]*)\\s\\d*Â
(FME regexp flavor does'nt want to doÂ
 (.*)\\s\\d* or (o\\w,\\s]*)\\s\\d* Though in other aplications it works like above)Â
Â
Â
Â
If u have specific objects that need changed u need to test for those yes.Â
In conditional you need to use different aproach, u can use tcl string and listfunctions.Â
Though this is somewhat more complexÂ
Â
You could do like conditional:Â
test condition:ÂÂ
@Value(adres) like %FAIRFIELD%Â
outputfield:@Evaluate(ostring replace {@Value(tst)} @Evaluate(Vlindex {@Evaluate(@Evaluate( regexp -indices {(.*)\\s\\d*} {@Value(tst)} M SM])==1?"$SM":"none")} 0]) @Evaluate(qlindex {@Evaluate(@Evaluate( regexp -indices {(ta-zA-Z,\\s]*)\\s\\d*} {@Value(tst)} M SM])==1?"$SM":"none")} 1]) {@Value(Replacement)}])Â
Â
...;)Â
i set a attribute @Value(Replacement) to "FAIRA "Â
Â
this replaces "FAIRFIELD WORKS, FAIRFIELD, AL 35064"Â to "FAIRA 35064"Â
Â
You might not want to go there and just use transformers: tester, stringsearchers and stringreplacers.Â
Â