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!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse a word from string

AJ106
6 - Meteoroid

Hi I am trying to parse an exact word from a string. there might not be a specific pattern

 

can some one please help 

 

thanks

 

Word : FBRHealthMonitor_DEVPOC.qvw

 

string : \\phy010118.prod.f01.dc1.abc.com\publisher$\1\Log\20210726\220001 - FBR_POC_appl_FBRHealthMonitor_DEVPOC.qvw\DocumentLog.txt

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @AJ106 

 

Can you provide more examples to understand/come up with pattern.

AJ106
6 - Meteoroid

the string length and values might differ but, i am interested in extracting  a part of string where ".qvw" is common and the word that comes before .qvw  in this case  "FBRHealthMonitor_DEVPOC" or may be abcd.qvw so on 

Hope i am clear 

Jean-Balteryx
16 - Nebula
16 - Nebula

What about underscores ? Is there always one ? 

atcodedog05
22 - Nova
22 - Nova

Hi @AJ106 

 

Why is the expected string FBRHealthMonitor_DEVPOC.qvw and not FBR_POC_appl_FBRHealthMonitor_DEVPOC.qvw

AJ106
6 - Meteoroid

FBRHealthMonitor_DEVPOC.qvw this is the exact file name and 'FBR_POC_appl' is an application bundle where FBRHealthMonitor_DEVPOC.qvw is a file 

Jean-Balteryx
16 - Nebula
16 - Nebula

Here is a workflow that takes everything after "appl_" up to ".qvw" using the following REGEX :

 

appl_(.*\.qvw)

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @AJ106 

 

Here is an example where i am considering the filename starts with appl and end with qvw

 

 

appl_(.+\.qvw)

 

 

Workflow:

atcodedog05_0-1627455278261.png

 

Hope this helps : )

Jean-Balteryx
16 - Nebula
16 - Nebula

Inspired by @atcodedog05's solution, i simplified my regex :

 

appl_(.*qvw)
AJ106
6 - Meteoroid

Thanks

Labels
Top Solution Authors