{"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/plarail_hangout/","type":"rich","url":"https://tech.fun-toy-life.com/entry/2026/07/05/134215","blog_title":"Engineering Tech Dojo","version":"1.0","title":"JavaScript\u306ereplace\u3068replaceAll\uff1a\u6587\u5b57\u5217\u7f6e\u63db\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081","author_name":"plarail_hangout","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F07%2F05%2F134215\" title=\"JavaScript\u306ereplace\u3068replaceAll\uff1a\u6587\u5b57\u5217\u7f6e\u63db\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 - Engineering Tech Dojo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["JavaScript","TypeScript"],"published":"2026-07-05 13:42:15","provider_name":"Hatena Blog","height":"190","image_url":null,"blog_url":"https://tech.fun-toy-life.com/","description":"JavaScript\u306ereplace\u3068replaceAll\uff1a\u6587\u5b57\u5217\u7f6e\u63db\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 JavaScript \u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u306b\u306f replace() \u3068 replaceAll() \u3092\u4f7f\u3044\u307e\u3059\u30022\u3064\u306e\u9055\u3044\u306f\u300c\u6700\u521d\u306e1\u4ef6\u3060\u3051\u7f6e\u63db\u3059\u308b\u304b\u3001\u3059\u3079\u3066\u7f6e\u63db\u3059\u308b\u304b\u300d\u3067\u3059\u3002 replace()\uff1a\u6700\u521d\u306e1\u4ef6\u3060\u3051\u7f6e\u63db const str = 'hello world hello' console.log(str.replace('hello', 'hi')) // 'hi world hello' \u6587\u5b57\u5217\u3092\u6e21\u3059\u3068\u6700\u521d\u306e1\u4ef6\u3060\u3051\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002 replaceAll()\uff1a\u3059\u3079\u3066\u7f6e\u63db const str = 'hell\u2026","width":"100%"}