Alteryx Designer Desktop Discussions

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

Replace and expression

PrMc
6 - Meteoroid

I need to replace the following expressions which I have hundreds of  to the ones below.

 

results.13.geometry.viewport.northeast.lat
results.0.geometry.viewport.northeast.lng
results.2.geometry.viewport.southwest.lat
results.800.geometry.viewport.southwest.lng
results.0.icon
results.70000.icon_background_color
results.3.icon_mask_base_uri
results.0.name

 

to

geometry.viewport.northeast.lat
geometry.viewport.northeast.lng
geometry.viewport.southwest.lat
geometry.viewport.southwest.lng
icon
icon_background_color
icon_mask_base_uri

name

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @PrMc 

 

You can do it with this formula

REGEX_Replace([Field1], 'results\.\d+\.', '')

 

Felipe_Ribeir0_0-1672235111758.png

 

gautiergodard
13 - Pulsar

hey @PrMc 

here is on quick way to do it using text to columns

gautiergodard_0-1672235157726.png

 

ShankerV
17 - Castor

Hi @PrMc 

 

One way of doing this with the help of Regex tool.

 

ShankerV_0-1672235929708.png

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

Labels