Free Trial

Alteryx Designer Desktop Discussions

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

Find & Replace Assistance

JeniReno
6 - Meteoroid

Hello. I'm very new to Alteryx, and I'm having trouble setting up the Find & Replace tool, but I might be using the wrong tool?

 

I have a file wherein only 2 symbols are permitted (a hyphen and an ampersand), so anything else needs to be removed/corrected. I also sometimes see HTML in the source files (usually just for an apostrophe and/or ampersands), which have to be corrected (apostrophe must be removed, ampersand must be corrected back to the symbol). Unfortunately, the forum won't allow me to post the example with any HTML code, so I had to remove it.

 

Here are the conditions I need to look for and correct:

 

Appreciate the help.

 

ORIGINAL NAME (with the issue)CORRECTED NAME
MR. VICTOR SMITHMR VICTOR SMITH
WOLTZ HTML for and ampersandWIND FORDWOLTZ & WIND FORD
EDDYHTML for an apostrophe CHEVROLETEDDYS CHEVROLET
WE #3 GOSSET LLCWE 3 GOSSET LLC
ROBERT /AZZOLLINIROBERT AZZOLLINI
BARBARA'S AUTOLANDBARBARAS AUTOLAND

 

 

9 REPLIES 9
Deano478
12 - Quasar

@JeniReno can you show us an example with this HTML code and also for start you can use this Regex in a formula to get you started: 

 

REGEX_Replace([ORIGINAL NAME (with the issue)], "[^A-Za-z0-9& -]", "")
JeniReno
6 - Meteoroid

See the image below. 

 

2024-08-27_07-42-51.jpg

Deano478
12 - Quasar

@JeniReno This inst pretty but its the best I could do with the time I have

cristiane_dsc
7 - Meteor

This is what worked for me when I tried to replicate your situation: I created the following table and used it as the reference for the Find and Replace tool. I connected the original table to the F anchor, and the reference table in the R anchor.

 

FOUNDREPLACE
HTML for ampersand 
HTML for apostrophe&
# 
/ 
' 

 

The final result was identical to your CORRECTED NAME column.

JeniReno
6 - Meteoroid

Thank you. That's exactly what I was imaging, but I'm having trouble with the F&R tool. 2024-08-27_10-47-52.jpg

Deano478
12 - Quasar

You need a text input tool containing what you want to find and replace then the connect it to the R side of the tool

cristiane_dsc
7 - Meteor

Good! So all you need to do is create the reference table (the blank cells are empty, so they show as [Null] after running the workflow) using the Text Input tool, and then connect it to the R anchor of the Find Replace tool.

 

Captura de tela 2024-08-27 121000.jpg

 

 

If your reference table has the same column names as mine, the configurtion of the Find Replace tool should be:

 

 

Captura de tela 2024-08-27 120745.jpg

 

JeniReno
6 - Meteoroid

I think my screenshot was misleading. I do have an input already, but when I insert the "Find & Replace" tool, my "Fina Value" is showing the NAME or TITLE Line 1 (Missing) in red (an error, I presume), and I don't seem to have the ability to change it. Find Within Field = Name or TITLE Line 1 is correct. 

 

Hopefully, the screenshots help.2024-08-27_12-42-28.jpg

 

2024-08-27_12-46-04.jpg

JeniReno
6 - Meteoroid

I'm so sorry. I think I finally got it. Thank you for the pictures, Cristiane!

 

2024-08-27_13-19-58.jpg

Labels
Top Solution Authors