Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 3
Shieru Asakoto
  • 6.5k
  • 19
  • 43

JavaScript (Node.js), 38 bytes

s=>s.replace(/(.)(.)(\s|$)/g,"2ドル1ドル3ドル")

Try it online!

RegExp approach, assuming words separated by only 1 space.

Shieru Asakoto
  • 6.5k
  • 19
  • 43

AltStyle によって変換されたページ (->オリジナル) /