Skip to main content
Solved

How to detect feature value with only white space


lazarlubomir
Contributor
Forum|alt.badge.img+7

Hello everybody,

I just have one tricky issue - how can FME detect attribute value, which is composed strictly by white spaces, e.g. ? Its not empty value in DB view, but it is hardly detected. Any idea please?

It doesnt matter on count of white spaces.

Thank You so much!

Lubo

Best answer by sigtill

Use a StringSearcher, select the attribute and the following parameters. Then you will have a list called _allWhitespaces with all the whitespaces together. So if the attribute has 3 whitespaces the list will consist of 3 elements

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

3 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • October 10, 2019

A string searcher with some regex?

^\s+$

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • Best Answer
  • October 10, 2019

Use a StringSearcher, select the attribute and the following parameters. Then you will have a list called _allWhitespaces with all the whitespaces together. So if the attribute has 3 whitespaces the list will consist of 3 elements


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 10, 2019

@egomm @sigtill, how simple, I have tried to find it in difficult way...

Thank You os much!


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