In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex Parse

Cscott8
5 - Atom

Hi everyone, 

 

looking for some help parsing the following expression:

 

Ft Smith - 114 (Rollup)
Fresno - 167 (Rollup)
Atlanta (Rollup)
Columbus-Starkville - 134 (Rollup)
Salt Lake City - 232 (Rollup)

 

Essentially, I want just the cities, but they come in all forms. 

 

Appreciate any help on this!

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

Looking at your example data I think:

^(.*?[A-Za-z])[^A-Za-z]+\(Rollup\)$

Should match the city into $1

 

So either using a Regex tool for formula tool can pull it out

Labels
Top Solution Authors