In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities 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
binu_acs
21 - Polaris
wonka1234
10 - Fireball

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

binu_acs
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