cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove extra periods from a string field

SOLVED
Adarsh_R
5 - Atom

How to remove extra periods from a string field

Hi,

I have values like 

ACC.BBB.TM
C.QMM.UZZ
DH.QPP.Z

I require the data like

ACCBBB.TM
CQMM.UZZ
DHQPP.Z

No extra periods in between..

Thanks in advance for the solution

4 REPLIES 4
Adarsh_R
5 - Atom

How to remove extra periods from a string field

Hi,

I have values like 

ACC.BBB.TM
C.QMM.UZZ
DH.QPP.Z

I require the data like

ACCBBB.TM
CQMM.UZZ
DHQPP.Z

No extra periods in between..

Thanks in advance for the solution

afv2688
16 - Nebula

Re: How to remove extra periods from a string field

Hello @Adarsh_R ,

 

How about this?

 

Regards

Attachment
Download this attachment
Highlighted
jacob_kahn
Quasar

Re: How to remove extra periods from a string field

Hi @Adarsh_R 

 

In your example, you can use the ReplaceFirst function to get the job done.

 

I've attached an example workflow.

 

the_jake_tool_0-1617103016993.png

 

Jacob

Attachment
Download this attachment
ChrisTX
16 - Nebula

Re: How to remove extra periods from a string field

Another RegEx option:

 

REGEX_Replace([your_field], "\.(?=.*\.)", "")

 

Chris

Re: How to remove extra periods from a string field

Thanks, Chris and everyone for your help...