Learn more about the Alteryx Maveryx Universe recently announced at Inspire 2023!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Fields that contains only numbers

slckkrky
8 - Asteroid

Hello

How can I spot fields that contains only numbers, including negative or positive values. So for the sample values only 95 must be captured or flagged

Capture2.JPG

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus
Sorry for being terse.

Regex_match([field],"[\-{0,1}\d+")

Should find zero or 1 minus signs followed by 1 or more numbers, but nothing else.

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
slckkrky
8 - Asteroid

this worked better
REGEX_Match(ToString([Total_Percent of Operation]), "-?[0-9]+")

Labels