In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter rows containing a string of numeric characters of specific length at start of cell

davidnolan
7 - Meteor

Hello,

 

I would like to filter my data for only rows that contain an 8 digit numeric string at the beginning of the cell. I think RegEx could solve the issue but I'm unsure of how to apply it. Basically I would like to include a filter that brings me from the screenshot 1 below to screenshot 2. Any help would be massively appreciated!

 

Thanks

 

Screenshot 1

davidnolan_0-1686752576795.png

 

Screenshot 2

davidnolan_1-1686752606255.png

 

4 REPLIES 4
TurboToad
11 - Bolide

This is one way to filter your results:

TurboToad_0-1686753486962.png

 

REGEX - ^\d{8}.*

^ asserts position at start of a line
\d matches a digit (equivalent to [0-9])
{8} matches the previous token exactly 8 times
. matches any character (except for line terminators)
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
binu_acs
21 - Polaris

@davidnolan One way of doing this

binuacs_0-1686753632710.png

 

nagakavyasri
12 - Quasar

Another way:

 

Screenshot 2023-06-14 134942.png

davidnolan
7 - Meteor

Thank you very much @TurboToad , @binu_acs , and @nagakavyasri  all of these worked and really helped!

Labels
Top Solution Authors