Skip to main content
Question

Attribute Validation without AttributeValidator (integer regex)


Forum|alt.badge.img

Hi,

I am using FME Desktop 2015.1 and need to test an attribute field for integer status.

passes are any whole number including;

zero

negative numbers where prefixed with "-"

positive numbers where NOT prefixed with "-"

In the absence of having attributeValidator (2016) can anyone advise me of the correct regex string?

Does ^(\\-)?\\d+$ look correct?

Thanks in advance,

Rob

2 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • June 30, 2017

Have you looked at the attributeclassifier, you can test for integer with this in 2015


Forum|alt.badge.img
  • Author
  • June 30, 2017

Hi @egomm

Thanks very much that was exactly what I was looking for!

Regards,

Rob


Reply


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