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

Parse a string with regex

warrenpark
6 - Meteoroid

I'm trying to parse the string below to get just the numbers in green (#s right before the .jpg).  I was able to do it with text to column, but I'd like to use RegEx

 

Unfortuately, i was getting confused by the syntax options.  Can someone offer some guidance?

 

Thanks!

 

https://photos.global.test/casual/square/5555/55552655.jpg?t=65598587595

https://photos.global.test/casual/square/5552/55528255.jpg

https://photos.global.test/casual/square/2575/25752558.jpg

2 REPLIES 2
MSalvage
11 - Bolide

@warrenpark

 

There are many different regular expressions that will work here. One that will work is:

 

(\d*).jpg

 

What this is saying is, return any number of digits before .jpg, pretty simple one. Note: the parenthesis denote what you want returned.

 

Best,

MSalvage

warrenpark
6 - Meteoroid

so simple!  Thanks!

Labels
Top Solution Authors