Alteryx Designer Desktop Discussions

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

Identifying repeating digits

Esmeralda_In_Paris
8 - Asteroid

Hi, 

 

I need to clean up phone numbers and I randomly find phone numbers made of the same repeating digit such as "11111111" or "33333333" and the repeating pattern never has the same number of digits, and the digit could go from 1 to 9.

I'd like to check the thousands of rows of the file and to identify all the rows having this pattern. 

Do you know how I could do that? 

 

thank you very much 

 

4 REPLIES 4
AbhilashR
15 - Aurora
15 - Aurora

Hi @Esmeralda_In_Paris, the Community might be able to better help if you can provide us some sample data to help us better understand the problem statement. Could you share about 2-3 rows of data? In any case, I suspect the REGEX tool is going to be the go-to tool for this sort of problem.

 

Most Alteryx users attempt to construct/test their regex expression using some form of online regex editor (e.g. https://regex101.com/) and then use them within the Regex tool in Alteryx.

apathetichell
19 - Altair

record id. regex tokenize (.) split to rows. summarize tool group by record id - count distinct mode. filter out entries where count distinct = 1. Those are the entries with 1 repeating value.

PhilipMannering
16 - Nebula
16 - Nebula

Regex Tool > Match with expression

(\d)\1*

will be true for numbers (of any length) that are all the same digit.

PhilipMannering_0-1633297075893.png

 

Esmeralda_In_Paris
8 - Asteroid

hi @PhilipMannering 

thank you so much! It works perfectly

Labels
Top Solution Authors