Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.

'Tis the season to be spooky! Read our new blog, How Spooky is Your City? Mapping and Predicting Scary Stuff. In it, @SusanCS provides a fun glimpse into using data to figure out the creepy quotient of where you live!

SOLVED

REGEX help or formula help

Highlighted
11 - Bolide

I'm trying to write a formula or use the RegEx tool that will change:

 

123 Starry St

 

into

 

123 Starry Street  (and not 123 Streetarry Street)

 

I'd like to do some sort of Regex Replace.  I also need to account for "STE" to "Suite" and others.

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Hi @Brad1 ,

 

Use the find replace tool for that. Set it like in the example and it should work. You can keep adding terms to be searched on the list without problem.

 

Untitled2.pngUntitled.png

 

Cheers

Highlighted
11 - Bolide

I was able to figure it out using RegEx.  Thx.

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

@Brad1,

 

While you can use a Regular Expression to get your desired results (Below), the RegEx is a more expensive function than the find/replace.  It also requires a little more testing and is a little more difficult to train your successor in.

 

REGEX_Replace( REGEX_Replace( 
		REGEX_Replace([Address], "\bSt\b", 'Street'),"\bAve\b",'Avenue'),"\bSte\b",'Suite')

Cheers,

 

Mark 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Labels