Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Alteryx

You're reading from   Learning Alteryx A beginner's guide to using Alteryx for self-service analytics and business intelligence

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788392655
Length 228 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Renato Baruti Renato Baruti
Author Profile Icon Renato Baruti
Renato Baruti
Arrow right icon
View More author details
Toc

Regular expressions


Regular expressions extract useful pieces of information from strings using matching patterns. They provide robust matching, parsing, or replacement of string data. The Match output is a Boolean value of true and false. True if the string pattern matches the regular expression and false if it doesn't. The Parse output returns the groups specified in the regular expression. The Replace output can replace groups specified in the replacement text window. The RegEx tool contains these powerful extraction pieces to obtain important information from strings. Let's go through an example of how versatile regular expressions can be. We will continue using the U.S. Chronic Disease Indicators workflow from the previous section, along with the resources located in the data folder.

Regular Expressions Example #1: Parse the QuestionID field to identify if a match is found containing one digit after the underscore _ punctuation.

Step 1: Select the RegEx tool from the Parse tool palette...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image