Hi,Â
Â
Â
have you tried the RegularExpressionMatcher from the FME Store? You can download it from within your workspace orÂ
http://fmestore.safe.com/transformers/RegularExpressionMatcher.htmÂ
Â
I've never tried it out, but I hope it helps.Â
Â
Â
best regards,Â
Â
Jelle
Â
Â
Jelle, the issue is I do not know how to write the regular expression to select the two different attributes and replace with two different ones.
Â
Â
My solution was to use TWO StringReplacer transformers (which worked), but if their is a way of doing it through one I would like to know that method....
Â
Â
Hi,
Â
Â
I don't think we can process two or more attributes at the same time with only one regular expression.
Â
Â
As Jelle mentioned, the AttributeValueMapper works fine to replace an attribute value simply. The parameter settings would be like this.
Â
Source Attribute: <attribute name>
Â
Destination Attribute: <attribute name>
Â
Mapping Direction: Foward (Source To Destination)
Â
Value Map (Source Value | Destination Value):
Â
 Red | Stop
Â
 Green | Go
Â
 Blue | Other  To do this for two different attributes, you can just use two AttributeValueMappers in a series.
Â
As long as reading your first post, I think this would be a simple and enough solution.  If you want to do somehow the operation for multiple attributes using only one transformer, I think it will be necessary to use the PythonCaller or the AttributeCreator (with Tcl command).  Python script exmpale: ----- import fmeobjects  # Target attribute names AttrNames = n'attr1', 'attr2']  # Map: source to destination Mapper = {   'Red': 'Stop',   'Green': 'Go',   'Blue': 'Other'}  def processFeature(feature):   for name in AttrNames:     value = str(feature.getAttribute(name))     if value in Mapper:       feature.setAttribute(name, Mapper value]) -----  Tcl example to get a result similar to the AttributeValueMapper above is: @Evaluate(estring map {"Red" "Stop" "Green" "Go" "Blue" "Other"} "@Value(<attribute name>)"])  You can specify this expression to "Value" column of the AttributeCreator for multiple attributes.
Â
Takashi
You can make use of stringPairReplacer . Would be something like Red Stop Green Go Blue Other , believe it works like this. Have a look. Regards, Jorge vidinha