You are here: FME Transformers > Strings > StringSearcher

StringSearcher

Performs a regular expression match on the value of the specified attribute. If the attribute matches the pattern, the feature is output via the MATCHED port, and the portion of the original attribute’s value that matched the regular expression is stored in the attribute specified in the “Matched Result Attribute” (and optionally matching pieces of the expressed are stored in the attribute list specified in the “Matched Parts Attribute”). Otherwise, it is output via the NOT_MATCHED port.

This transformer takes its name and inspiration from the UNIX utility grep, which searches for patterns in text files.

Parameters

Related Transformers

To replace substrings matching a regular expression in a string, use the StringReplacer transformer.

Additional Resources

Test regular expressions with Rubular, a Ruby-based regular expression editor.

Editing Transformer Parameters

About Transformer Parameter Options

Transformer Categories

Strings

Transformer History

This transformer was previously named Grepper.

Search FMEpedia

Search for samples and information about this transformer on FMEpedia.