Upgrade to Pro — share decks privately, control downloads, hide ads and more …

正規表現で心が折れた/Regular expressions broke my heart

cottondesu
January 22, 2024

正規表現で心が折れた/Regular expressions broke my heart

cottondesu

January 22, 2024
Tweet

More Decks by cottondesu

Other Decks in Science

Transcript

  1.  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:ஔ͖׵͑ޙจࣈྻ