Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove space before .doc/.docx if it exists

wonka1234
10 - Fireball

Hi,

 

I have a bunch of documents read into alteryx by directory tool.

Some have a space before .doc/.docx. 

 

How can I remove that?

 

Ie:   cool_document .doc

 

should be cool_document

 

thanks

5 REPLIES 5
binuacs
21 - Polaris
wonka1234
10 - Fireball

@binuacs  sorry the output should be cool_document.doc or .docx.  Not removing the docs

binuacs
21 - Polaris
Raj
16 - Nebula

You could have tried data cleansing tool as well where you can select remove all spaces.
this would have provided same output.

flying008
15 - Aurora

Hi, @wonka1234 

 

FYI.

 

REGEX_Replace([Email], '(\s+)(?=.doc|.docx)', '')

录制_2023_12_20_14_30_32_725.gif

Labels
Top Solution Authors