In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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