Hi all,
I'd like to share my RegEx Cheat Sheet as attached, that I prepared for my self-study to make myself more understood about Regex function.
One day, I realized that I frequently google about similar topic on RegEx repeatedly, so in order to save my time, I determined to prepare it for my ready reference.
But I'm just wondering this material could be helpful to somebody else, so that brought me here.
Hoping this would help you somewhat!
Please note that:
- I checked its content as much as possible, but if there might exist some mistake, please inform me.
- This is for Alteryx Designer Desktop, and not for other products.
- This cheat sheet doesn't cover comprehensive function is Alteryx Designer Desktop, but just covers the contents I feel it important and frequently used.
2023-11-08: Updated to Ver.2, added [[:punct]]
Thanks for suggestion @PhilipMannering
@gawa great stuff!!
Great!!
Here's some resources I'd like to share with you:
Some documentation from Alteryx as well:
I've also attached a cheat sheet I keep printed out from MIT!
Looks good to me! I always forget whether ^ and $ refer to start/end of text or start/end of lines - this clarifies it.
Appreciate it's not exhaustive, but [[:punct:]] for punctuation might be a nice addition.
@PhilipMannering Thank you for your suggestion!
Addition of [[:punct:]] would be a great idea, and I've updated attachment in my original post to ver.2.
This is so helpful - thanks so much!
REGEX_Replace(TRIM(REGEX_Replace([InputField], "[^0-9]+", ",")), "^,|,$", "")