Skip to main content
Question

How to filter features based on a substring


fmelizard
Safer
Forum|alt.badge.img+18

I want to filter my data to find features where part of an attribute matches a predefined string. How can I do that?

5 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+3
I can think of two potential options:

 

  1. Use the tester transformer with Contain Operator
  2. Use the StringSearcher if you want to perform more complex filtering by matching a substring pattern using Regular Expression

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • July 11, 2018
xiaomengatsafe wrote:
I can think of two potential options:

 

  1. Use the tester transformer with Contain Operator
  2. Use the StringSearcher if you want to perform more complex filtering by matching a substring pattern using Regular Expression
Perfect answer @XiaomengAtSafe

 


taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • July 11, 2018
xiaomengatsafe wrote:
I can think of two potential options:

 

  1. Use the tester transformer with Contain Operator
  2. Use the StringSearcher if you want to perform more complex filtering by matching a substring pattern using Regular Expression
Perhaps the safe company can consider adding a matching method other than the exact matching mode for the FeatureTypeFilter, such as regular expressions, like expressions, etc.

 


xiaomengatsafe
Safer
Forum|alt.badge.img+3
taojunabc wrote:
Perhaps the safe company can consider adding a matching method other than the exact matching mode for the FeatureTypeFilter, such as regular expressions, like expressions, etc.

 

That's a great idea @taojunab. I've posted this idea on your behalf, and hopefully captured what you are looking for. Please add your use case and comment there to help support your idea. Don't forget to vote for it :)

 


taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • July 12, 2018
xiaomengatsafe wrote:
That's a great idea @taojunab. I've posted this idea on your behalf, and hopefully captured what you are looking for. Please add your use case and comment there to help support your idea. Don't forget to vote for it :)

 

Thank you @XiaomengAtSafe

 

I will vote for this idea.

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