Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Regex Help

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

Film data:

Marvel Comics Presents (1988) #125

Spider-Man Legends Vol. II: Todd Mcfarlane Book I (Trade Paperback)

Spider-Man Legends Vol. II: Todd Mcfarlane Book I

Spider-Man Legends Vol. II: Todd Mcfarlane Book I (1998)

Marvel Comics Presents #125

 

Expected output:

BS_THE_ANALYST_2-1674247549830.png

I can see how to group it, but can't seem the REGEX it 😂..

 

Thanks in advance!

All the best,
BS

LinkedIN

Bulien
5 REPLIES 5
binuacs
21 - Polaris

@BS_THE_ANALYST One way of doing this with the Regex Tokenize method

 

binuacs_0-1674249656719.png

 

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

Thanks @binuacs . I rarely use the Tokenize method! 

 

Do you know if it's possible to do this with the Parse method?

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@binuacs Parse method 

^(.*?)(?:\((\d{4})\))?(\s+#\d+)?$

BS_THE_ANALYST_0-1674252746168.png

 

All the best,
BS

LinkedIN

Bulien
binuacs
21 - Polaris

@BS_THE_ANALYST That is nice, I was scratching my head 😀

binuacs
21 - Polaris

@BS_THE_ANALYST you can also mark your solution.

Labels