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

Alteryx designer Discussions

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

REGEX help or formula help

Highlighted
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.

Alteryx Partner
Alteryx 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

Bolide

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

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