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
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
正規表現で心が折れた/Regular expressions broke my heart
cottondesu
January 22, 2024
More Decks by cottondesu
See All by cottondesu
ヨシケイの撮り忘れを対策したPart2/measures-were-taken-to-prevent-forgetting-to-pick-up-yoshikei-part2
cottondesu
0
50
ヨシケイの取り忘れ対策した / Measures were taken to prevent forgetting to pick up Yoshikei
cottondesu
0
330
開発環境公開ハード編 / Development environment public hardware version
cottondesu
0
190
開発環境公開ソフト編 / Development environment public software edition
cottondesu
0
180
オレオレGASからMakeへの移行を検討してみた / Considering the transition from Ore Ore GAS to Make
cottondesu
0
760
Kanazawa.rb 10周年KPT / Kanazawa.rb 10th Anniversary KPT
cottondesu
0
880
Kanazawa.rb 9周年KPT / Kanazawa.rb 9th Anniversary KPT
cottondesu
0
490
Mac Book Proのバッテリー交換してみた / I replaced the battery in my Mac Book Pro.
cottondesu
0
600
みんなのCSIRTコミュニティ紹介 / Everyone's CSIRT community introduction
cottondesu
0
510
Other Decks in Science
See All in Science
生成AI・プレプリント時代における 研究成果公開の再設計 ― トップカンファレンス文化はどこへ向かうのか / Redesigning the Dissemination of Research Outputs in the Age of Generative AI and Preprints — Where Is the Top-Conference Culture Heading?
ykiyota
0
30k
Massey Ratings for Match Outcome Prediction in Table Tennis: Evidence of Greater Stability than the ITTF World Ranking
konakalab
0
130
Physical AIを支えるWeights & Biases
olachinkei
1
530
データベース03: 関係データモデル
trycycle
PRO
1
800
Conversation is the New Dashboard: 属人性を排除する第4世代BIツールの勢力図
shomaekawa
1
640
Tensor Factorization Meets Deformed Information Geometry: Convex Relaxation under Deformed Algebra
gkazunii
0
130
AI(人工知能)の過去・現在・未来 ~AIは人類を越えるのか~
tagtag
PRO
0
150
「遂行理論の未来」(松島斉教授最終講義記念セッションの発表資料)
shunyanoda
0
970
Wet Active Matter
rajeshrinet
0
140
YouTubeにおける撤回論文の参照実態 / metascience-meetup2026
corgies
3
330
機械学習 - 授業概要
trycycle
PRO
0
590
生成AIと司法書士の未来.pdf
tagtag
PRO
0
160
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
174
15k
Mobile First: as difficult as doing things right
swwweet
225
10k
Designing for Performance
lara
611
70k
Unsuck your backbone
ammeep
672
58k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Faster Mobile Websites
deanohume
310
32k
Believing is Seeing
oripsolob
1
200
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
350
Documentation Writing (for coders)
carmenintech
77
5.5k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
KATA
mclloyd
PRO
35
15k
Why Our Code Smells
bkeepers
PRO
340
58k
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 ͚ͩ͜͜ஔ