Skip to main content
Question

Attribute Validation without AttributeValidator (integer regex)

  • June 30, 2017
  • 2 replies
  • 30 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • 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