We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

remove specific words from the sentence

Kuldeepmathur
8 - Asteroid

HI,

 

I am trying to find and remove the Dr. Name from the data. 

 

MY health is great due to dr. ravi as he is great
I am struggling because of dr. kuldeep is not good

 

output expected :

 

MY health is great due to dr.  as he is great
I am struggling because of dr. is not good

 

Thanks,

Kuldeep

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @Kuldeepmathur 

 

Here is one way of doing that

 

Felipe_Ribeir0_0-1665310790218.png

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

atcodedog05
22 - Nova
22 - Nova

Hi @Kuldeepmathur 

 

Here is a way of doing it.

 

Workflow:

atcodedog05_0-1665312124217.png

 

the string we are trying to find is dr. name

(dr\.) captures dr.

(\u+) captures letters

 

REGEX_Replace([phrase], "(dr\.) (\u+)", "$1") replaces dr. name it with only dr.

 

Hope this helps : )

Labels
Top Solution Authors