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

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!

5 REPLIES 5
binuacs
20 - Arcturus

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

 

binuacs_0-1674249656719.png

 

BS_THE_ANALYST
14 - Magnetar

Thanks @binuacs . I rarely use the Tokenize method! 

 

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

BS_THE_ANALYST
14 - Magnetar

@binuacs Parse method 

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

BS_THE_ANALYST_0-1674252746168.png

 

binuacs
20 - Arcturus

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

binuacs
20 - Arcturus

@BS_THE_ANALYST you can also mark your solution.

Labels