The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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.
解決済み

Extract multiple 10 digit value from a string seperated by a space

Ahmediqbal
メテオール

Hi there, I am trying to extract the invoice number from a bank statement line using the regex tool but cannot figure it out. The invoice number generally starts with 9; one statement line can have multiple invoices. Each statement has over 200 lines. 

 

Input : 343319020720230203001352969860868418 9062990141 9062990142 9860868760 9070853746 9070853747 9070853748 9860868677 9860868678 9860868679 9860866363/PT/FT/PY/9860868418 9062990141 9062990142 9860868760 9070853746 9070853747 9070853748 9860868677 9860868678 9860868679 9860866363/OA/USD12321333,23/BI/816467004/BN/BNK COUNTRY/ bANK NAME

Output: 9062990141 9062990142 9860868760 9070853746 9070853747 9070853748 9860868677 9860868678 9860868679 9860866363

4件の返信4
flying008
オーロラ

Hi, @Ahmediqbal 

 

FYI.

スポイラ
^[0-9]+?\s(9(?:[0-9\s]+))(?=\/PT)

录制_2023_08_09_08_38_33_968.gif

 

 

ArnaldoSandoval
クエーサー

Hi @Ahmediqbal 

 

I am using these rules:

  • The invoices start with space 9.
  • After the last invoice the text start with a forward slash.

 

Regards,

Arnald

Felipe_Ribeir0
ネビュラ

Hi @Ahmediqbal 

 

Try to tokenize with (\b\d{10}\b)

 

TOKENIZE.png

Ahmediqbal
メテオール

Thank you all!

 

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