Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Parse out the first 3 characters

wonka1234
10 - Fireball

Hi,

 

I am trying to parse out the first 3 charcters of a string.

 

ie NBA100 , NBA48B, NBA50, should now be 100 and 48B, 50.

 

5 REPLIES 5
DataNath
17 - Castor
17 - Castor

How does this look @wonka1234? This will be fully dynamic, in case your strings don't always begin with 'NBA'.

 

REGEX_Replace([Full], '.{3}(.*)', '$1')

 

DataNath_0-1657554935052.png

 

messi007
15 - Aurora
15 - Aurora

@wonka1234,

 

Please see below :

 

messi007_0-1657555029509.png

 

Attached the workflow,

Regards,

binuacs
21 - Polaris

@wonka1234 one way of doing this

TrimLeft([Field],'NBA')

 

binuacs_0-1657555030303.png

 

binuacs
21 - Polaris

@wonka1234 also you can use the below formula

Substring([Field],3,Length([Field]))

binuacs_0-1657557263511.png

 

 

dlesny
8 - Asteroid

Hi All

None of the answers quite matched my case so here is another way that suited me for parsing:

 

RegEx tool - Regular Expression - 

 

^(.{3})\s*

Labels
Top Solution Authors