Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex Question: how to extract text only from a text number mixed field?

marlline
8 - Asteroid

Hi, I need to extract text from a field mixed text with number, for example ABC123456 I need ABC

The problem is that length of text varies from record to record. For example:

ABC123456 (ABC is needed)

ABBC554466 (ABBC is needed)

ABBBB457888 (ABBBB is needed)

 

I think I could use Regex to parse it and I read some posts. When I try .*, it is not working.

Please help. Thank you!

11 REPLIES 11
David-Carnes
12 - Quasar

Somewhere in the early 21st (shortly after I career changed into  computers and programming) I faced a rather intractable problem, one that i figured out would require a rather complex regular expression, with something called a backreference.  So I asked a friend and coworker, one I considered a very good programmer, if she could help me.

 

She asked me if i'd heard the one about the programmer and regular expressions.

"No," I replied.

A programmer says, "I've got a problem.  Hey, I'll use a regular expression!"

"Hmm, now I have two problems."

 

And with that she turned around and walked away.

marlline
8 - Asteroid

That is so funny!

Labels
Top Solution Authors