Skip to main content
Question

fme stringsearcher


Forum|alt.badge.img

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

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • November 3, 2017

Hi @hassangillani3,

Could you share us the result generated by transformer WebServerCaller?

The transformer TimeStamp_StringSearcher, is a custom transformer?

 

Thanks,

Danilo


Forum|alt.badge.img

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

 

 


Forum|alt.badge.img
danilo_fme wrote:

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

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • November 3, 2017

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>)


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