Skip to Content
Tableau Prep即学即用
book

Tableau Prep即学即用

by Carl Allchin
August 2022
Beginner to intermediate
463 pages
9h 22m
Chinese
China Electric Power Press Ltd.
Content preview from Tableau Prep即学即用
280
31
所得数据集如图
31-7
所示。
31
-
7
:从 REGEX_REPLACE() 示例中得到的数据集
31.5
常用的正则表达式命令
为了能够使用正则表达式函数,需要使用正则命令指定正在寻找的模式。在正则表
达式中,大小写敏感性取决于
Prep Builder
所连接的数据源,因此在输入字符串名
称时需要小心。表
31-1
列出了你将使用的关键正则命令。
31
-
1
:常用的正则表达式命令
\d
任意
0
9
的数字
\d+
一个或多个数字
\a
z
任意小写字母
\A
Z
任意大写字母
\D
任何非数字
\s Whitespace
空白符
tab
backspace
制表符
换行符等
\w
任意单次的字符
^
字符串的开始
$
字符串的结束
( )
提取括号内的任何内容
如同
REGEXP_EXTRACT()
函数
{ }
明确指定子串中的一个数字
通过在括号中添加一个数字来设置
例如
{3}
要想测试正则表达式,你可以使用
Tableau Prep
或在为测试正则表达式而建立的网
站上获得实时反馈信息(例如,
http://regex101.com
)。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

深度学习:核心原理与案例分析

深度学习:核心原理与案例分析

Posts & Telecom Press, Ahmed Menshawy
Python金融实战

Python金融实战

Posts & Telecom Press, Yuxing Yan
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang

Publisher Resources

ISBN: 9787519864439