Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replace a specific character

wcamarg3
8 - Asteroid

Hi all,

 

I'm trying to replace 3 characters "&&&" by only one character "&".

 

I used this formula:

 

Replace([field], "&&&", "&")

 

but it keeps "&&&".

 

Does anyone know how to solve it?

 

 

 

Many thanks,

 

Wilson

4 REPLIES 4
markcurry
12 - Quasar

Hi @wcamarg3 

 

The formula you have should work, so I'm not sure what the issue is.  You could also try a RegEx replace formula..

REGEX_Replace([Input], "&{3}", "&")

 

Hope that helps

vizAlter
12 - Quasar

Hi @wcamarg3 — Use this expression in a Formula tool, like below:

 

REGEX_Replace([Field1], "&&&*", "&")

vizAlter_0-1600886777730.png

 

wcamarg3
8 - Asteroid

I only made a small change like that:

 

REGEX_Replace([Field], "&&&*", "")

 

It worked like that.

 

 

Many thanks for your help.

vizAlter
12 - Quasar

@wcamarg3 — Glad to know!

 

Please mark that post "Solved" or "Solved" with a Like if resolved your query. This will help other users find the same answer/resolution.  Thank you.

Labels
Top Solution Authors