Question

fme stringsearcher

  • 3 November 2017
  • 4 replies
  • 10 views

Badge

I have to fetch data from PV output website and for this I am using TimeStamp_StringSearcher. This is provided to me by my teacher and I dont know how to understand this:

 

 

cats = [[ A-Za-z0-9_@.\\/'#:,&+-]*]

 

 

When I run my fme scheme it says this error:

 

 

@Length -- Invalid argument -- ''6:15AM','6:30AM','6:45AM'.....

 

 

Kindly explain briefly

 

 

Thank you


4 replies

Userlevel 4
Badge +30

Hi @hassangillani3,

Could you share us the result generated by transformer WebServerCaller?

The transformer TimeStamp_StringSearcher, is a custom transformer?

 

Thanks,

Danilo

Badge

Danilo,

 

 

The webcaller server result is a specific solar power production data generated at several time intervals:

 

 

https://pvoutput.org/intraday.jsp?id=38342&sid;=35087&dt;=20170515

 

fme2.png

 

Thanks

 

 

Badge

Hi @hassangillani3,

Could you share us the result generated by transformer WebServerCaller?

The transformer TimeStamp_StringSearcher, is a custom transformer?

 

Thanks,

Danilo

 

Danilo,

 

 

The webcaller server result is a specific solar power production data generated at several time intervals:

 

 

https://pvoutput.org/intraday.jsp?id=38342&sid;=35087&dt;=20170515

 

fme2.png

 

Thanks

 

 

Badge +3

the part between the square brackets is a regular expression.

Its nothing more then a character class.

It means that the string may consist of a 0 or more characters equal to either any of

A-Z a-z 0-9 _@. / ' # : , & + -

So alphabetic upper or lower, digits and either of _@. / ' # : , & + -

The \\ is a escape character for /

The characterclass is assigne to a attribute "cats" for further usage.

The @length() requires a geometric feature, not a string.

If you need length of string you should use@StringLength(<STRING>)

Reply