Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Regex to grab the text after third occurrence?

Biraj
Meteoro

Hi, I want to grab "T14 John Lewis" from "October 21 Accruals - Returns - US - T14 John Lewis - Triple".


Do you know what should be the Regex?

 

My Alteryx version: 2019.3.6

5 RESPOSTAS 5
Qiu
21 - Polaris
21 - Polaris

@Biraj 
I can do better if had more data, but for now.

1203-Biraj-1.PNG1203-Biraj-2.PNG

binuacs
Arcturus
Saqueador
binuacs_0-1638513450978.png

 

Biraj
Meteoro

Hi, thanks for your reply. Text to column is fine. But I kind of want to use regex here. Some other data points are:

October 21 Accruals - Marketing - US - Y284 Target - Curve
October 21 Accruals - Marketing - Asia - General - Single
October 21 Accruals - Marketing - UK - General - Single

Biraj
Meteoro

Hi,

 

(.+?)\-(.+?)\-(.+?)\-(.*)\-(.*)

 

This worked better. Is there a way to parse and not replace?

binuacs
Arcturus

Changing Replace to Parse should work

Saqueador
binuacs_0-1638515922059.png

 

Rótulos