Solved

How to detect feature value with only white space

  • 10 October 2019
  • 3 replies
  • 15 views

Badge +1

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

icon

Best answer by sigtill 10 October 2019, 16:09

View original

3 replies

Userlevel 1
Badge +10

A string searcher with some regex?

^\s+$
Badge +21

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

Badge +1

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

Thank You os much!

Reply