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 broke my heart
Search
cottondesu
January 22, 2024
Science
0
150
正規表現で心が折れた/Regular expressions broke my heart
cottondesu
January 22, 2024
Tweet
Share
More Decks by cottondesu
See All by cottondesu
ヨシケイの撮り忘れを対策したPart2/measures-were-taken-to-prevent-forgetting-to-pick-up-yoshikei-part2
cottondesu
0
26
ヨシケイの取り忘れ対策した / Measures were taken to prevent forgetting to pick up Yoshikei
cottondesu
0
130
開発環境公開ハード編 / Development environment public hardware version
cottondesu
0
150
開発環境公開ソフト編 / Development environment public software edition
cottondesu
0
140
オレオレGASからMakeへの移行を検討してみた / Considering the transition from Ore Ore GAS to Make
cottondesu
0
560
Kanazawa.rb 10周年KPT / Kanazawa.rb 10th Anniversary KPT
cottondesu
0
690
Kanazawa.rb 9周年KPT / Kanazawa.rb 9th Anniversary KPT
cottondesu
0
430
Mac Book Proのバッテリー交換してみた / I replaced the battery in my Mac Book Pro.
cottondesu
0
540
みんなのCSIRTコミュニティ紹介 / Everyone's CSIRT community introduction
cottondesu
0
440
Other Decks in Science
See All in Science
データマイニング - ウェブとグラフ
trycycle
PRO
0
180
Transport information Geometry: Current and Future II
lwc2017
0
210
データベース05: SQL(2/3) 結合質問
trycycle
PRO
0
820
なぜ21は素因数分解されないのか? - Shorのアルゴリズムの現在と壁
daimurat
0
110
データマイニング - グラフデータと経路
trycycle
PRO
1
220
データベース09: 実体関連モデル上の一貫性制約
trycycle
PRO
0
1k
KH Coderチュートリアル(スライド版)
koichih
1
48k
DMMにおけるABテスト検証設計の工夫
xc6da
1
1.1k
データベース11: 正規化(1/2) - 望ましくない関係スキーマ
trycycle
PRO
0
950
機械学習 - SVM
trycycle
PRO
1
900
知能とはなにかーヒトとAIのあいだー
tagtag
0
140
データマイニング - コミュニティ発見
trycycle
PRO
0
160
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Docker and Python
trallard
46
3.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
115
20k
Practical Orchestrator
shlominoach
190
11k
GraphQLとの向き合い方2022年版
quramy
49
14k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Done Done
chrislema
185
16k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
590
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Transcript
ਖ਼نදݱͰ৺͕ંΕͨ LBOB[BXBSCNFFUVQ ݄
!DPUUPO@EFTV 8FCΤϯδχΞෆΤϯδχΞ
ਖ਼نදݱͱʁ
จࣈྻͰจࣈͷΈ߹ΘͤΛর ߹͢ΔͨΊʹ༻͍ΒΕΔύλʔϯ
!<";> a,!<";> !<";>
ຐ๏ͷढจ
ਖ਼نදݱͰղܾͰ͖Δ ͔Θ͔Βͳ͍͚Ͳ
ਖ਼نදݱͰ ৺͕ંΕͨ
Γ͍ͨ͜ͱ
LBOB[BXBSC LBOB[BXBSC ҎԼͷจࣈྻύλʔϯ͕͋Δͱ͢Δɻ Լઢʹ֘͢Δจࣈྻ͕ೖྗ͞Εͨ߹ ҰகՕॴΛTQBODMBTTlIPHFzೖྗจࣈྻTQBOͰ ஔ͍ͨ͠ ྫ ೖྗ͞Εͨจࣈྻ͕[BXBͷ߹ ҎԼͷΑ͏ͳஔ͕͍ͨ͠
LBOB[BXBSC LBOBTQBODMBTTlIPHFz[BXBTQBOSC
ਖ਼نදݱͭΑͭΑ ͷਓୡڭ͑ͯ
Ͱ͢
LBOB[BXBSC LBOB[BXBSC ೖྗจࣈྻɿ[BXB LBOB[BXBSC LBOBTQBODMBTTlIPHFz[BXBTQBOSC ஔ JavaScriptͷྫ str.replace(pattern,rep)
//str:ஔ͖͑ରจࣈྻɹpattern:ਖ਼نදݱɹrep:ஔ͖͑ޙจࣈྻ Rubyͷྫ str.sub(pattern,rep) //str:ஔ͖͑ରจࣈྻɹpattern:ਖ਼نදݱɹrep:ஔ͖͑ޙจࣈྻ
·ͱΊ w ਖ਼نදݱͰ৺͕ંΕͨ w มҊͰରԠ͕ͨ͠৺ͷই༊͑ͳ͍ w มҊޙଓͷ ͱΓ͚ͯɺޙଓͷ ͷจࣈ ྻͷΈஔͯ͠ɺ࠷ޙʹલ෦ͱ݁߹ͰରԠ
w ࠓͷඪਖ਼نදݱͪΐͬͱڧ͘ͳΔ LBOB[BXBSC LBOB[BXBSC ͚ͩ͜͜ஔ