ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Need help to extract particular reference from the file.

jerometyl
メテオール

OUR REF :A000688YOUR REF : SCEI/004/FY17 dated 23.01.2018

OUR REF :A000687YOUR REF : CG/010/FY18 dated 28.11.2018

OUR REF :A000686YOUR REF : ETPL/005/2016 dated 30.10.2018PO AMENDED as at 8 March 2019

OUR REF : ETPL/002/FY18YOUR REF : ETPL/002/FY18DESIGN-AND-BUILD

 

I need help to extract out the data SCEI/004/FY17 and CG/010/FY18 and ETPL/005/2016 and ETPL/002/FY18

 

Any idea how i can do so? I have over thousands of lines 

5件の返信5
alisonpitt
ボリード

Hi @jerometyl, the regex you need is (?<=YOUR REF \: )[A-Z]*\/\d{3}\/[A-Z0-9]{4}

スポイラ
your-ref.png
messi007
15 - Aurora
15 - Aurora

@jerometyl,

 

Here you go : 

 

messi007_2-1652458789128.png

 

 

 

Attached the workflow,

Regards,

rfoster7
ボリード

looks like your required pattern is 2-4 upper case characters followed by a / followed by three digits followed by a / followed by either four digits or FY + 2 digits, yes?

 

regexp tool to the rescue

 

rfoster7_0-1652458767385.png

 

One row didn't match because it doesn't match the pattern of the other rows. QN/2018/JAN/6023R3

 

you could do a regexp pattern of something like "any number of characters not including a space, followed by a \ followed by any number of characters not including as space, followed by a \, followed by any number of characters ending in a space" or something like that if you have other non standard pattern data to find. 

 

https://regex101.com/ This website lets you build a regexp pattern and check it against test data. its been invaluable to me. 

 

jerometyl
メテオール

Thank you @alisonpitt it works perfectly. 

jerometyl
メテオール

OUR REF : PR8070YOUR REF : LOA T/CG/13/FY19This PO is to be read with SCEI PO 4700095881.

 

 

Hi, can i check what is the regex formula to extract "T/CG/13/FY19"?

Some of the data ref have a "T" infront. 

ラベル
トップのソリューション投稿者