Skip to main content
Question

How to filter features based on a substring

  • July 10, 2018
  • 5 replies
  • 440 views

fmelizard
Safer
Forum|alt.badge.img+20

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+11
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
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • July 11, 2018
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
  • 108 replies
  • July 11, 2018
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+11
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
  • 108 replies
  • July 12, 2018
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.