Alteryx Designer Desktop Discussions

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

Input changes

Aleksandar1
7 - Meteor

In my  input file i have something like this: Example text ( some short text) , i need to delete this short text and () throught worklflow,how can I do that?

4 REPLIES 4
binuacs
20 - Arcturus

@Aleksandar1 Use the Replace() function

 

Replace([Field],"short text" , "")

 

 

Aleksandar1
7 - Meteor

But i have one problem,my input is like this

Example

Example2 (some text)

Example3 (different text)

Example4 (some random text)

Example5 (some random text)

Example6 (some random text)

Example

Example8 (some random text)

Example9 (some random text)

Example10 (some random text)

Example

Example

 

I need all of this text in () to remove, note in every () is different text

binuacs
20 - Arcturus

@Aleksandar1 Would you be able to provide some sample data and expected output?

FrederikE
13 - Pulsar

Hey @Aleksandar1,

 

You can use RegEx to do so: 

FrederikE_0-1685966295065.png

 

 

(.*)\(.*\)

 

This Regex Code captures everything, until a "(" apears, everything else is excluded. 

Labels