Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
regular expressions
Search
多火工作室
May 09, 2015
Education
92
0
Share
regular expressions
多火工作室#技术群殴#
多火工作室
May 09, 2015
More Decks by 多火工作室
See All by 多火工作室
github&git
luxiaojijan
1
260
Nodejs实现RESTful api
luxiaojijan
1
160
机器人餐厅
luxiaojijan
0
130
做全栈的java开发者
luxiaojijan
0
130
python的介绍与web实战
luxiaojijan
0
130
Other Decks in Education
See All in Education
教育現場から見た Ruby on Rails
yasslab
PRO
0
160
SARA Annual Report 2025-26
sara2023
1
350
共感から、つくる: 変わり続ける自分と、誰かのための創造
micknerd
1
370
応募課題(’25広島)
forget1900
0
1.6k
Lectura 1 (PIT : Python Basico)
robintux
0
340
Info Session MSc Computer Science & MSc Applied Informatics
signer
PRO
0
280
From Participation to Outcomes
territorium
PRO
0
460
吉祥寺.pmは1つじゃない — 複数イベント並走運営の12年 —
magnolia
0
1.2k
0526
cbtlibrary
0
140
The Lotus and the Frog
vyadav
0
100
2026年度春学期 統計学 第1回 イントロダクション ー 統計的なものの見方・考え方について (2026. 4. 9)
akiraasano
PRO
0
140
SL AMIGOS 教育格差と私たちの取り組み - スリランカの支援学校への支援プロジェクト:リシンドゥ リオ 氏 (別府溝部学園短期大学 ビジネス観光コース 留学生):2720 Japan O.K. ロータリーEクラブ2026年4月6日卓話
2720japanoke
0
600
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Utilizing Notion as your number one productivity tool
mfonobong
4
310
Mind Mapping
helmedeiros
PRO
1
230
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
The agentic SEO stack - context over prompts
schlessera
0
790
The SEO identity crisis: Don't let AI make you average
varn
0
480
GitHub's CSS Performance
jonrohan
1033
470k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
160
Transcript
<=?]
/^Hello [Ww]orld.?$/
Regular Expressions ᆞ ᄵ і ղ ൔ
ु༯đᆃ൞હ݆Ĥ
ୄઑđݺگᄖđྀ࢚ϔĆ
/pattern/
None
None
字符串的匹配,查找,替换
POSIX & Unix & Programme Unix tools(vim/vi ) Used by
all programming languages(Perl)
<=?]
// (the construct)
?(zero or one) +(one or more) *(zero or more) {n,m}(only
match n to m)
a* a+ a? a{1,3}
^ (匹配开始) $ (结束匹配) \b (开始或者结束)
[.+*] (匹配.或者+或者*) [^.+*] (匹配除了.+*之外的字符)
\d = [0-9] \w = [A-Za-z0-9] \s = [\t\r\n] —表⽰示范围
(匹配除了换⾏行符之外,任⼀一个字符) a(匹配除⼀一个点符号) 转义
/^Hello [Ww]orld.?$/ 开始符号 精确匹配Hello 匹配W或者w 结束 可能出现0次或者1次
/^Hello [Ww]orld.?$/ Hello World Hello world Hello World!
(http://)?w{3}\.[a-z]+\.com www.google.com http://duohuo.org www.zcool.com.cn
/[0-9]{5}(-[0-9]{4})?/ 12345 12345-6789 123-6789
/[0-9]+(-[0-9]{4})?/ 12345 12345-6789 123-6789
() group
反向引用(Backreferences) 小括号里面的正则捕获内容,会进行分组,每个分组会有一个组号, 第一个出现组号为1,第二个出现组号为2。
/(.o)\1r/ dolor
/\b(?:\d{1,3}\.){3}\d{1,3}\b/ 999.999.999.999