ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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.
解決済み

Need to count words and put /

mmustkee
ファイアボール

Hi Team,

 

I have data in which we need to place "/" after each 3 letter.  We have "/" in many of the field but sometimes it is 6 letters together without "/". Please refer table below

 

DateResult
ssn/ssd/fdcdcf/cdf/klnsdnssn/ssd/fdc/dcf/cdf/kln/sdn
ssn/ssd/fdcdcf/cdf/kln/dfcssn/ssd/fdc/dcf/cdf/kln/dfc
ssd/dfrsdr/dsrssd/dfr/sdr/dsr
dfrssn/sdf/dfrtgy/klydfr/ssn/sdf/dfr/tgy/kly
3件の返信3
FrederikE
パルサー

Hey @mmustkee,

 

You can achive this using RegEx in a Formula tool:

 

REGEX_Replace(Replace([Date], "/", ""), "(...)", "$1/")

 

See the attached WF. 

 

mmustkee
ファイアボール

@FrederikE 

 

Thanks for your solution.

We can not replace "/" with "" as  we have huge data and sometimes we have incorrect data. so only thing I want is to place "/" where ever we have 6 letters together without space and without "/"

FrederikE
パルサー

Hey @mmustkee,

 

Alright. Then

 

REGEX_Replace([Date], "(\w{3})(\w{3})", "$1/$2")

 

This should do :) 

ラベル
トップのソリューション投稿者