Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Filter records - only field that contains numbers

fiorano
8 - Asteroid

Hi,

 

I am looking to filter a recordset where a certain field must contain numbers.  If this field has  only letters then I would like to split these records out.

 

Many thanks,

 

Fiorano

4 REPLIES 4
Thableaus
17 - Castor
17 - Castor

Hi @fiorano 

 

Filter tool - use this function in Custom Filter - REGEX_Match([Field], ".*\d+.*")

This will filter records with numbers in it.

 

The False side will be made of records with letters and punctuation only. 

 

Cheers,

jeff_reynolds
10 - Fireball

Something like the attached should do what you're looking for. I suck at RegEx, so I'm betting someone can it better, but this does work. 

 

There are two streams, both do the same thing, but you can watch what happens to the test data in either. 

 

Good luck. 

 

fiorano
8 - Asteroid
Thank you!
garretwalters12
8 - Asteroid

Why wouldnt  REGEX_Match("[^\d]") work? Isnt this saying any digit character not in the set? I was trying this before finding this article which works.

Labels
Top Solution Authors