Question

Attribute Validation without AttributeValidator (integer regex)


Badge

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

Userlevel 1
Badge +10

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

Badge

Hi @egomm

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

Regards,

Rob

Reply