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
27
ヨシケイの取り忘れ対策した / Measures were taken to prevent forgetting to pick up Yoshikei
cottondesu
0
140
開発環境公開ハード編 / 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
570
Kanazawa.rb 10周年KPT / Kanazawa.rb 10th Anniversary KPT
cottondesu
0
700
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
550
みんなのCSIRTコミュニティ紹介 / Everyone's CSIRT community introduction
cottondesu
0
440
Other Decks in Science
See All in Science
データベース03: 関係データモデル
trycycle
PRO
1
290
機械学習 - 決定木からはじめる機械学習
trycycle
PRO
0
1.1k
データベース04: SQL (1/3) 単純質問 & 集約演算
trycycle
PRO
0
1k
生成検索エンジン最適化に関する研究の紹介
ynakano
2
1.4k
KH Coderチュートリアル(スライド版)
koichih
1
50k
会社でMLモデルを作るとは @電気通信大学 データアントレプレナーフェロープログラム
yuto16
1
330
AIに仕事を奪われる 最初の医師たちへ
ikora128
0
990
People who frequently use ChatGPT for writing tasks are accurate and robust detectors of AI-generated text
rudorudo11
0
130
データマイニング - コミュニティ発見
trycycle
PRO
0
170
コンピュータビジョンによるロボットの視覚と判断:宇宙空間での適応と課題
hf149
1
410
白金鉱業Meetup_Vol.20 効果検証ことはじめ / Introduction to Impact Evaluation
brainpadpr
2
1.3k
テンソル分解による糖尿病の組織特異的遺伝子発現の統合解析を用いた関連疾患の予測
tagtag
2
300
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Designing Experiences People Love
moore
142
24k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Documentation Writing (for coders)
carmenintech
76
5.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Designing for Performance
lara
610
69k
How to Think Like a Performance Engineer
csswizardry
27
2.2k
Side Projects
sachag
455
43k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Typedesign – Prime Four
hannesfritz
42
2.9k
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 ͚ͩ͜͜ஔ