Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Special characters

Simraneyy
Atome

How can one remove special characters in Alteryx- By special characters I mean - "నడకుడురు", "SAŔOJINI".

Like I want them to be only normal alphabets and numbers. It keeps showing the error-  Output Data (17) PATNAME: "Mr. NIRANJAN’S KUMAR S" could not be fully converted from a WString to a String.

4 RÉPONSES 4
binuacs
Polaris

@Simraneyy 

Trim(REGEX_Replace([Name], '[^\sa-zA-Z]', ''))

binuacs_1-1646315454509.png

 

 

 

Alteryx_AR
Quasar

Hi @Simraneyy,

 

Try-

 

 Regex_Replace ([Field1],"[^a-zA-Z]",'') .

 

ArtiRajput_0-1646317124587.png

ArtiRajput_1-1646317172332.png

   

Hope this helps.

 

 

 

Luke_C
Castor

Hi @Simraneyy 

 

Leveraging @binuacs 's reply, if you wanted to keep the 'R' you could do:

 

UPPERCASE(Trim(REGEX_Replace(DecomposeUnicodeForMatch([Field1]), '[^\sa-zA-Z]', '')))

 

Luke_C_0-1646317390712.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Simraneyy ,

 

This is one of my favorite RegEx questions.  I once saw a shirt with the following on it:

 

[^ -~]

 

I immediately laughed (sick sense of humor).

 

It is an expression looking for non-printable ascii characters.  Everything in the "normal" character set is between SPACE and TILDE.

 

REGEX_Replace([Field1], "[^ -~]", '')

 

This will eliminate all sorts of control or special characters.  You can replace them with nothing (above) or with a space you decide.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Étiquettes