Alteryx Designer Desktop Discussions

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

Parse

bh1789
8 - Asteroid

Error ID: AkEMVkNPdEOMPsUQ

 

Can someone assist with the RegEx expression that would remove the Error ID: so my output would be AkEMVkNPdEOMPsUQ

 

Thank you

7 REPLIES 7
MarqueeCrew
20 - Arcturus
20 - Arcturus

@bh1789 ,

 

This string has 3 words.  I'd simply use GetWord() and find it with:

 

 

 

GetWord([Field1], 2)

 

 

or simply:

 

Replace([Field1], "Error ID: ", '')

Cheers,

 

Mark

 

p.s.

 

REGEX_Replace([Field1], ".*\s(.*)", '$1')

 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
JamesCharnley
13 - Pulsar

Hi @bh1789,

 

This one doesn't really need to be RegEx, which can be a bit more computationally expensive than string functions. In this case, I'd use TrimLeft will work just as well with the formula: TrimLeft([Field1],'Error ID: ')

 

JamesCharnley_0-1668438310225.png

 

Felipe_Ribeir0
16 - Nebula

Hi @bh1789 

 

One way of doing this with regex

 

(?<=\:\s)(.*?)$

 

Felipe_Ribeir0_0-1668438417433.png

 

KrishnaChithrathil
11 - Bolide

@bh1789 

You can try this. 

KrishnaChithrathil_0-1668442907287.png

 

 

ShankerV
17 - Castor

Hi @bh1789 

 

One way to achieve this is also using Regex tool

 

Use the Regular expression below

:\s(.*)

 

Use the output method Parse and you get your output.

 

Many thanks

Shanker V

bh1789
8 - Asteroid

Thank you very much James for the simple solution.  Question, how would you trim the following (TrimLeft doesn't seem to work with some characters):

 

IVID/+UuYbjoifvOy to just UuYboifvOy

'DcA3OFVM to just DcA3OFVM (without the single quote in the front)

 

 

JamesCharnley
13 - Pulsar

Hey @bh1789, no problem. Trimleft should work for all characters, I'm assuming the reason it's getting confused here is because the formula is ending when you're entering the ' you want to be trimmed, because Alteryx is thinking that's you closing the quotations. It can be bypassed in this scenario by wrapping the ' in double quotation marks instead.

 

JamesCharnley_1-1668782986427.png

 

 

Labels