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
170
正規表現で心が折れた/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
38
ヨシケイの取り忘れ対策した / Measures were taken to prevent forgetting to pick up Yoshikei
cottondesu
0
200
開発環境公開ハード編 / Development environment public hardware version
cottondesu
0
160
開発環境公開ソフト編 / Development environment public software edition
cottondesu
0
150
オレオレGASからMakeへの移行を検討してみた / Considering the transition from Ore Ore GAS to Make
cottondesu
0
620
Kanazawa.rb 10周年KPT / Kanazawa.rb 10th Anniversary KPT
cottondesu
0
760
Kanazawa.rb 9周年KPT / Kanazawa.rb 9th Anniversary KPT
cottondesu
0
450
Mac Book Proのバッテリー交換してみた / I replaced the battery in my Mac Book Pro.
cottondesu
0
570
みんなのCSIRTコミュニティ紹介 / Everyone's CSIRT community introduction
cottondesu
0
460
Other Decks in Science
See All in Science
データベース09: 実体関連モデル上の一貫性制約
trycycle
PRO
0
1.1k
なぜ21は素因数分解されないのか? - Shorのアルゴリズムの現在と壁
daimurat
0
310
(2025) Balade en cyclotomie
mansuy
0
470
AkarengaLT vol.41
hashimoto_kei
1
110
蔵本モデルが解き明かす同期と相転移の秘密 〜拍手のリズムはなぜ揃うのか?〜
syotasasaki593876
1
230
データベース10: 拡張実体関連モデル
trycycle
PRO
0
1.1k
Lean4による汎化誤差評価の形式化
milano0017
1
450
白金鉱業Meetup_Vol.20 効果検証ことはじめ / Introduction to Impact Evaluation
brainpadpr
2
1.7k
機械学習 - K近傍法 & 機械学習のお作法
trycycle
PRO
0
1.4k
Distributional Regression
tackyas
0
360
凸最適化からDC最適化まで
santana_hammer
1
370
[Paper Introduction] From Bytes to Ideas:Language Modeling with Autoregressive U-Nets
haruumiomoto
0
220
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
130
Side Projects
sachag
455
43k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
The Limits of Empathy - UXLibs8
cassininazir
1
240
The Cult of Friendly URLs
andyhume
79
6.8k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
73
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
460
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
130
Optimizing for Happiness
mojombo
378
71k
Unsuck your backbone
ammeep
672
58k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
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 ͚ͩ͜͜ஔ