Skip to main content
Solved

How to use an attribute in the Regular Expression field of StringSearcher?


toedeledokie

Hi there!

The attribute is composed of concatenated values.

When I test if the concatenated values work as a regex, it succeeds:

02But when I try and use the created attribute, it doesn't match.

01I would love your input, please.

Best answer by danilo_fme

Hi @toedeledokie​ 

 

Attached the Workspace.

 

 

Thanks in Advance,

Danilo

View original
Did this help you find an answer to your question?

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • June 5, 2021

Hi @toedeledokie​ 

 

You need to use the transformer to merger your informations, like the transformer FeatureMerger ou FeatureJoiner before the StringSearcher.

 

 

Thanks in Advance,

Danilo


toedeledokie
danilo_fme wrote:

Hi @toedeledokie​ 

 

You need to use the transformer to merger your informations, like the transformer FeatureMerger ou FeatureJoiner before the StringSearcher.

 

 

Thanks in Advance,

Danilo

Appreciated. Will give it a go. Fought a bit with it all earlier today 🙂


toedeledokie

Sorry @danilo_fme​ ,

I've had no success with FeatureMerger. Both columns have to have the same values, no? Name in file_a and Name in file_b differ but have substrings in common.

I pored over the FeatureMerger documentation as best I could.

File_a:

file_a_nameFile_b:

file_b_name Workspace:

workspaceHere's my workspace attached, with some of the files. There are more files I need to do this kind of merger with but it's gotta succeed first with file_a and file_b.


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • Best Answer
  • June 8, 2021

Hi @toedeledokie​ 

 

Attached the Workspace.

 

 

Thanks in Advance,

Danilo


toedeledokie
danilo_fme wrote:

Hi @toedeledokie​ 

 

Attached the Workspace.

 

 

Thanks in Advance,

Danilo

Amazing, thank you! I could not, for the life of me, figure out how to pass along the regex and you whipped this up making it look so easy.

A million thanks for the lesson 🙏


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings