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
RegExp the lifehack
Search
Roadagain
June 20, 2017
Programming
0
93
RegExp the lifehack
ictechで発表したスライドです
Roadagain
June 20, 2017
Tweet
Share
More Decks by Roadagain
See All by Roadagain
StorybookでモジュールモードのVuex storeを利用する / Use Modules mode Vuex store in Storybook
roadagain
0
970
@slack/bolt on Cloud Functions for Firebase
roadagain
2
910
HL-Report コントラクト開発裏話 / Developing Contracts of HL-Report
roadagain
1
630
Rustでオブジェクト指向エクササイズやってみた / OOP exercise in Rust
roadagain
0
370
Other Decks in Programming
See All in Programming
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
200
Rechartsで楽にゴリゴリにカスタマイズする!
10tera
1
170
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
1k
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
820
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
The Shape of a Service Object
inem
0
530
From Idea to IDE: Developing Plugins for Android Studio
thisaay
1
230
Prolog入門
qnighy
4
1k
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
3
470
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
420
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
Featured
See All Featured
How to Ace a Technical Interview
jacobian
274
23k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
The Pragmatic Product Professional
lauravandoore
31
6.2k
How To Stay Up To Date on Web Technology
chriscoyier
786
250k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Gamification - CAS2011
davidbonilla
79
5k
Ruby is Unlike a Banana
tanoku
96
11k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
Debugging Ruby Performance
tmm1
72
12k
Building an army of robots
kneath
302
42k
Build your cross-platform service in a week with App Engine
jlugia
228
18k
Transcript
3FH&YQUIFMJGFIBDL Roadagain@iiplab:~$ cat *.log | grep “^\S+72”
ਖ਼نදݱ /[rR]eg[eE]xp?/
ਖ਼نදݱ ςΩετฤूͷཔΓʹͳΔΦτϞ
ਖ਼نදݱ ίʔυฤूͷཔΓʹͳΔΦτϞ
ਖ਼نදݱ ͑Δͱඇৗʹศརʂ ࠷ૣϥΠϑϋοΫͷҰछ
ਖ਼نදݱ ҾͷมߋʹҰׅରԠʂ ෳύλʔϯͷλΠϙΛҰׅमਖ਼ʂ දه༳Εͷදݱʹ͑Δʂ
ਖ਼نදݱ ࠓճհ͢Δͷ ৗͰ͑Δਖ਼نදݱ
େ·͔ͳྨ จࣈྻ ϝλจࣈ ͦͷଞͷจࣈΫϥε
େ·͔ͳྨ จࣈྻ ϝλจࣈ ͦͷଞͷจࣈΫϥε
จࣈྻ จࣈྻ୳ࡧ
จࣈྻ
େ·͔ͳྨ จࣈྻ ϝλจࣈ ͦͷଞͷจࣈΫϥε
ϝλจࣈ ී௨ʹจࣈͱͯ͠͏߹ Τεέʔϓ͕ඞཁͰ͢
ϝλจࣈ ܁Γฦ͠ * ճҎ্ + ճҎ্ ? ճPSճ ho* =~
hook la+ =~ claaap hoge? =~ hog
ϝλจࣈ ܁Γฦ͠ {n} Oճ {n,m} OճdNճ go{2} =~ google ap{1,2}
=~ apple
ϝλจࣈ จࣈݶఆ . จࣈ [ ] <>ͷࣈ [a-z] BUP[ [^
] OPU .at =~ hat [abc] =~ abc [A-Z] =~ TeX [^hex] =~ enum
ϝλจࣈ อଘ () ͘͘Δ \n ͷϚον෦ (abc) =~ abc ([ab])\1
=~ aa
ϝλจࣈ ͦͷଞ . ҙͷࣈ | 03 ^ ߦ಄ ઌ಄ $
ߦ ඌ \ Τεέʔϓ .at =~ hat lic|sk =~ click ^fx =~ fxac eX$ =~ LaTeX \.a =~ .alsoc
େ·͔ͳྨ จࣈྻ ϝλจࣈ ͦͷଞͷจࣈΫϥε
ͦͷଞͷจࣈΫϥε 1FSMͷఆ͕ٛେຊͬΆ͍ 104*9Ϋϥε Θ ͳ͍Ͱ͢
ͦͷଞͷจࣈΫϥε \d ΞϥϏΞࣈ \w BMOVN \s ۭനจࣈ \d+ =~ 114514
\w+7 =~ k1ja7a9 a\s+b =~ d␣a␣␣b
ͦͷଞͷจࣈΫϥε \D [^\d] \W [^\w] \S [^\s]
ਖ਼نදݱ༻ྫ దʹσϞ͠·͢
·ͱΊ ਖ਼نදݱςΩετฤूͷڧ͍ຯํ ਖ਼نදݱϥΠϑϋοΫ ࠷ѱ.*͚֮ͩ͑ͱ͚େৎ