Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Extract a specific text from a field

griseldagomes
8 - Asteroid

Hello Experts,

I am looking for a way to extract a specific text which starts with 'R1' followed by 6 characters (total character length = 8) from field 'Reference'.

unique no.Reference
1text 1 hello R14388AB
2dummy R19584PE
36548 R1T1258X test 
4checkfile R19865WW
5R1E9556S tester

 

Below is the expected output

unique no.Referenceoutput
1text 1 hello R14388ABR14388AB
2dummy R19584PER19584PE
36548 R1T1258X test R1T1258X
4checkfile R19865WWR19865WW
5R1E9556S testerR1E9556S

 

Can you please resolve this query.


Thank you

13 REPLIES 13
flying008
15 - Aurora

@Alpha325 

 

Please post your error data of string.

Alpha325
6 - Meteoroid

Hi @flying008

ReferenceRegExOut1
Destination code: 01123456700101123456700
Destination code: 030-123456-001030-123456-00
flying008
15 - Aurora

Hi, @Alpha325 

 

Parse by:

 

(?:R|:\s)(\S+)(?=\s|$)

 

******

If can help you get your want, please mark it as a solution and give a like for more share.

 

Alpha325
6 - Meteoroid

Thanks @flying008

Labels
Top Solution Authors