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

Replace formula with Wildcard

Bolide

Hi,

 

Is there a way to do a Replace with a Wildcard?

 

Store                          to                Store

Target Store# 123                        Target

 

So it would be:  Replace([Store], "Store# {wildcard here}", "")

 

Thanks in advance for any help.

Highlighted
Alteryx Certified Partner

Yes, this is possible using the RegEx version of the replace function: REGEX_Replace(. Try using this formula:

 

REGEX_Replace([Store],"\s\Store#\s\d+","")

 

RegEx breakdown:

\s = space character

\Store# = matches the string 'Store#'

\s = space again

\d = digit character (0-9)

+ = one or more (referring to the digit character)

Labels