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

Alteryx Designer Desktop Discussions

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

RegeX for telephone numbers

Meena
8 - Asteroid

Hi,

 

I have the below list of telephone numbers to be validated - the string is allowed to contain spaces or + or () but no alphabets.

 

Please can you suggest how to get it done.

 

Phone#Result
A123Invalid
1234567Valid
1234 5678Valid
+12345Valid
(0) 1234Valid
3456HInvalid
123-456Valid

 

Thanks

Meena

2 REPLIES 2
bpatel
Alteryx Alumni (Retired)

hi @Meena ,

 

you can use the data cleansing tool and select to remove letters.

 

 

bpatel_1-1574802560468.png

 

hope this helps!

Meena
8 - Asteroid

Solved .. using !(REGEX_Match([Value],'[\d|(|)|+|\s|-]+'))

Labels