Skip to main content
Solved

How to detect feature value with only white space

  • October 10, 2019
  • 3 replies
  • 112 views

lazarlubomir
Contributor
Forum|alt.badge.img+10

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

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • October 10, 2019

A string searcher with some regex?

^\s+$

sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • 956 replies
  • 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+10
  • Author
  • Contributor
  • 165 replies
  • October 10, 2019

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

Thank You os much!