This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
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.
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?
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.