community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE
Alteryx Gallery is experiencing a problem in which system emails are not being sent out. As a result, if you are attempting to sign up for a new account, you may be unable to verify your email address. We are working to solve this as soon as possible and will remove this notice once resolved.
SOLVED

Apply same Regex on multiple columns

Highlighted
Meteoroid

Hi there,

 

I have been using the Regex Tool (under Parse) to clean up multiple columns that needs cleaning.

I am wondering is there a way to apply the Regex on several columns all at once?

 

For examples, most of the columns should only be an integer value (for scores) however they are coming up as either Dates (e.g. 2017-02-02 when it should be just 2) or even some texts like "10-TEXT=10" which I use regex to turn it into just 10.

 

As you can imagine, to apply the above regex expressions over 20-30 fields are very time consuming/messy.

Surely there is a better way to do this in Alteryx?

 

Thanks,

Viv

Alteryx Certified Partner

@viv_acious,

 

theres 3 regex functions that can be used in a expression builder (Formula). REGEX_MATCH(), REGEX_REPLACE() and REGEX_COUNT(). Use which ever is appropriate in a multi-field formula tool and apply your regex pattern to all the fields you check.

 

Hope this helps!

 

Jimmy

Alteryx Partner

This does not work for PARSE.  I have to parse 12 different fields - apparently the only solution is to the use the "REGEX" tool under the "Parse" menu 12 times. 

 

Labels