{"id":21107,"date":"2017-04-10T09:17:01","date_gmt":"2017-04-10T00:17:01","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=21107"},"modified":"2024-05-06T11:41:25","modified_gmt":"2024-05-06T02:41:25","slug":"%e3%80%90javascript%e5%85%a5%e9%96%80%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e3%80%8c%e7%bd%ae%e6%8f%9b%e3%80%8d%e3%82%92%e5%ae%8c%e5%85%a8%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/21107","title":{"rendered":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u6587\u5b57\u5217\u306e\u4e2d\u304b\u3089\u4efb\u610f\u306e\u6587\u5b57\u3092\u5225\u306e\u6587\u5b57\u306b\u7f6e\u63db\u3059\u308b\u300creplace()\u300d\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3092\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>JavaScript\u306b\u306f\u52b9\u7387\u3088\u304f\u300c\u7f6e\u63db\u300d\u304c\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u7c21\u5358\u306a\u65b9\u6cd5\u304b\u3089\u8907\u96d1\u306a\u624b\u6cd5\u307e\u3067\u4eba\u306b\u3088\u3063\u3066\u3055\u307e\u3056\u307e\u306a\u3084\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u3067\u89e3\u8aac\u3092\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<ul>\n<li><b>\u3010\u57fa\u790e\u3011\u300creplace\u300d\u3068\u306f\uff1f<\/b><\/li>\n<li><b>\u3010\u57fa\u790e\u3011\u300creplace\u300d\u306e\u4f7f\u3044\u65b9<\/b><\/li>\n<li><b>\u3010\u5b9f\u8df5\u3011\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u300creplace\u300d\u306e\u4f7f\u3044\u65b9<\/b><\/li>\n<li><b>\u3010\u5b9f\u8df5\u3011\u300creplace\u300d\u306e\u6d3b\u7528\u4e8b\u4f8b<\/b><\/li>\n<li><b>\u3010\u307e\u3068\u3081\u3011\u300creplace\u300d\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081<\/b><\/li>\n<\/ul>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u3001\u300creplace\u300d\u3092\u3057\u3063\u304b\u308a\u5b66\u7fd2\u3057\u3066\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u3092\u76ee\u6307\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\uff1e\uff1e\uff1e <a href=\"https:\/\/www.sejuku.net\/blog\/21107#replace-6\">\u4eca\u3059\u3050\u300creplace\u306e\u4f7f\u3044\u65b9\u300d\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u3053\u3061\u3089<\/a><\/p>\n<h2>\u300creplace\u300d\u3068\u306f\uff1f<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u307e\u305a\u6700\u521d\u306b\u300creplace()\u300d\u306b\u3064\u3044\u3066\u57fa\u672c\u7684\u306a\u77e5\u8b58\u304b\u3089\u5b66\u7fd2\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u300creplace()\u300d\u306f\u3001\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u5225\u306e\u6587\u5b57\u5217\u306b\u7f6e\u304d\u63db\u3048\u308b\uff08\u7f6e\u63db\uff09\u3053\u3068\u304c\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002JavaScript\u3067\u6587\u5b57\u5217\u3092\u6271\u3046\u30b1\u30fc\u30b9\u306f\u591a\u304f\u3066\u3001\u4f8b\u3048\u3070\u300c\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3084\u300c\u65e5\u4ed8\u300d\u306a\u3069\u3092\u7f6e\u63db\u3059\u308b\u3053\u3068\u306f\u65e5\u5e38\u8336\u98ef\u4e8b\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u7f6e\u63db\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">\/\/\u65e5\u4ed8\u306e\u7f6e\u63db\r\n2018-03-30 \u21d2 2018\u5e7403\u670830\u65e5\r\n\r\n\/\/\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u7f6e\u63db\r\nuser 001 \u21d2 user_001<\/pre>\n<p>\u3053\u306e\u4f8b\u306f\u3001\u65e5\u4ed8\u306e\u300c-\u300d\u3092\u300c\u5e74\u6708\u65e5\u300d\u306b\u7f6e\u63db\u3057\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u300c\u7a7a\u767d\u300d\u90e8\u5206\u3092\u300c_\u300d\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u3092\u5b8c\u5168\u306b\u5225\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3078\u7f6e\u63db\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u4e00\u822c\u7684\u306b\u306f\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4e00\u90e8\u5206\u3092\u7f6e\u63db\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u300creplace()\u300d\u306e\u57fa\u672c\u304b\u3089\u5fdc\u7528\u6280\u307e\u3067\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u3088\u3046\u306b\u69cb\u6210\u3057\u3066\u3044\u308b\u306e\u3067\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<h2>\u300creplace\u300d\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u3001\u300creplace\u300d\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<p>\u307e\u305a\u306f\u3001\u6587\u5b57\u5217\u306e\u7f6e\u63db\u65b9\u6cd5\u3068\u8907\u6570\u6587\u5b57\u5217\u306b\u5bfe\u51e6\u3059\u308b\u624b\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u305d\u308c\u3067\u306f\u3001JavaScript\u3092\u4f7f\u3063\u3066\u300c\u7f6e\u63db\u300d\u3092\u884c\u3046\u6642\u306b\u4f7f\u3046\u300creplace()\u300d\u30e1\u30bd\u30c3\u30c9\u306e\u57fa\u672c\u304b\u3089\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u4e00\u822c\u7684\u306a\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = \u6587\u5b57\u5217\r\n\r\nstr.replace( \u5bfe\u8c61\u306e\u6587\u5b57, \u7f6e\u63db\u3059\u308b\u6587\u5b57 );<\/pre>\n<p>\u300c\u6587\u5b57\u5217\u300d\u306e\u4e2d\u304b\u3089\u300c\u5bfe\u8c61\u306e\u6587\u5b57\u300d\u3092\u691c\u7d22\u3057\u3001\u4e00\u81f4\u3057\u305f\u6587\u5b57\u3092\u300c\u7f6e\u63db\u3059\u308b\u6587\u5b57\u300d\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u7f6e\u63db\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u6587\u5b57\u5217\u3092\u7528\u610f\u3057\u3066\u3001\u300c_\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u300d\u3092\u300c-\uff08\u30cf\u30a4\u30d5\u30f3\uff09\u300d\u306b\u7f6e\u63db\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = 'user_123';\r\nvar result = str.replace( '_', '-' );\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true\">user-123<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u306e\u4e2d\u304b\u3089\u300c _ \u300d\u3092\u691c\u7d22\u3057\u3066\u300c \u2013 \u300d\u306b\u7f6e\u63db\u3057\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u5bfe\u8c61\u306e\u6587\u5b57\u3092\u691c\u7d22\u3057\u3066\u7f6e\u63db\u3059\u308b\u306e\u304c\u57fa\u672c\u3068\u306a\u308b\u306e\u3067\u3001\u6163\u308c\u3066\u304a\u304f\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h3>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u4eca\u5ea6\u306f\u3001\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u3044\u5834\u5408\u306e\u624b\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u305d\u3053\u3067\u3001\u307e\u305a\u306f\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u6587\u5b57\u3092\u666e\u901a\u306b\u300creplace()\u300d\u3059\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var users = 'user_1, user_2, user_3';\r\nvar result = users.replace('_', '-');\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">user-1, user_2, user_3<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u3092\u898b\u308b\u3068\u3001\u6700\u521d\u306b\u4e00\u81f4\u3057\u305f\u300cuser-1\u300d\u3060\u3051\u304c\u7f6e\u63db\u3055\u308c\u3066\u304a\u308a\u3001\u3042\u3068\u306b\u7d9a\u304f\u6587\u5b57\u306f\u7f6e\u63db\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3088\u306d\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u300creplace()\u300d\u306f\u6700\u521d\u306b\u4e00\u81f4\u3057\u305f\u6587\u5b57\u3092\u7f6e\u63db\u3057\u305f\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7d42\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\uff01<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u5bfe\u8c61\u6587\u5b57\u3092\u7f6e\u63db\u3057\u305f\u3051\u308c\u3070\u300cwhile\u6587\u300d\u306a\u3069\u3092\u4f7f\u3063\u3066\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = 'user_1, user_2, user_3';\r\nvar result = str.replace('_', '-');\r\n\r\n\/\/\u300cstr\u300d\u3068\u300cresult\u300d\u304c\u540c\u3058\u6587\u5b57\u5217\u306b\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\r\nwhile(result !== str) {\r\n\r\n    str = str.replace('_', '-');\r\n    result = result.replace('_', '-');\r\n\r\n}\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">user-1, user-2, user-3<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u3092\u898b\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u5bfe\u8c61\u6587\u5b57\u304c\u7f6e\u63db\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u306e\u65b9\u6cd5\u306f<b>\u3042\u307e\u308a\u52b9\u7387\u306e\u826f\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u306a\u3044\u3046\u3048\u30d0\u30b0\u3082\u8d77\u304d\u3084\u3059\u3044\u65b9\u6cd5<\/b>\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3082\u3063\u3068\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u6b21\u306e\u7ae0\u3067\u306f\u300c\u6b63\u898f\u8868\u73fe\u300d\u3092\u6d3b\u7528\u3057\u305f\u7f6e\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\uff01<\/p>\n<h2>\u6b63\u898f\u8868\u73fe\u3067\u300creplace\u300d\u3092\u4f7f\u3046<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u3001\u300creplace\u300d\u306b\u3088\u308b\u7f6e\u63db\u3092\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3057\u3066\u884c\u3046\u624b\u6cd5\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u3082\u57fa\u672c\u3068\u306a\u308b\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u7f6e\u63db\u65b9\u6cd5\u304b\u3089\u7279\u6b8a\u6587\u5b57\u3092\u6d3b\u7528\u3057\u305f\u30d1\u30bf\u30fc\u30f3\u307e\u3067\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h3>\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u6b63\u898f\u8868\u73fe\u3067\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306f\u3001\u57fa\u672c\u7684\u306a\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u7f6e\u63db\u65b9\u6cd5\u3092\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u300c\u6b63\u898f\u8868\u73fe\u300d\u306b\u3064\u3044\u3066\u307e\u3060\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u65b9\u306f\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u57fa\u672c\u304b\u3089\u5fdc\u7528\u307e\u3067\u5b66\u7fd2\u3067\u304d\u307e\u3059\uff01<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/20973\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top-150x86.png\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010JavaScript\u5165\u9580\u30114\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7406\u89e3\u3059\u308b\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u308f\u305a\u304b12\u500b\u306e\u7279\u6b8a\u6587\u5b57\u3092\u899a\u3048\u308b\u3060\u3051\u3067\u3001\u4eca\u3059\u3050\u6b63\u898f\u8868\u73fe\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u300creplace()\u300d\u306b\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u3010replace( \u6b63\u898f\u8868\u73fe, \u7f6e\u63db\u6587\u5b57 )\u3011\u306e\u3088\u3046\u306b\u7b2c1\u5f15\u6570\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = 'user-200, user-15, user-4505';\r\n\r\n\/\/ \u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u6307\u5b9a\r\nvar result = str.replace(\/user-\\d\\d,\/, 'user-001,');\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">user-200, user-001, user-4505<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u306e\u4e2d\u304b\u3089\u300cuser-\u300d\u306b\u7d9a\u3044\u30662\u6841\u306e\u6570\u5b57\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u62bd\u51fa\u3057\u3066\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b63\u898f\u8868\u73fe\u3067\u300cuser-\\d\\d,\u300d\u3068\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6570\u50242\u6841\u3068\u300c,\uff08\u30ab\u30f3\u30de\uff09\u300d\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u691c\u7d22\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001replace()\u306f\u7c21\u5358\u306b\u6b63\u898f\u8868\u73fe\u3092\u5229\u7528\u3067\u304d\u308b\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u70b9\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h3>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u6b63\u898f\u8868\u73fe\u3067\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u3055\u3066\u3001\u4eca\u5ea6\u306f\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u6b63\u898f\u8868\u73fe\u3067\u306f\u300c\u30d5\u30e9\u30b0\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u8907\u6570\u6587\u5b57\u5217\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a18\u8ff0\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3010 \/\u6b63\u898f\u8868\u73fe\/g \u3011\u306e\u3088\u3046\u306b\u6b63\u898f\u8868\u73fe\u306e\u3042\u3068\u306b\u300cg\u300d\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = 'user_1, user_2, user_3';\r\n\r\n\/\/ \u6b63\u898f\u8868\u73fe\u306b\u300cg\u300d\u30d5\u30e9\u30b0\u3092\u8ffd\u52a0\r\nvar result = str.replace(\/_\/g, '-');\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">user-1, user-2, user-3<\/pre>\n<p>\u300cg\u300d\u30d5\u30e9\u30b0\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u3001\u3059\u3079\u3066\u306e\u300c _ \u300d\u304c\u300c &#8211; \u300d\u306b\u7f6e\u63db\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u524d\u7ae0\u306e\u300cwhile\u6587\u300d\u3092\u4f7f\u3063\u305f\u4f8b\u3088\u308a\u3082\u305a\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u7387\u306e\u826f\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u3063\u305f\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\uff01<\/p>\n<h3>\u7279\u6b8a\u6587\u5b57\u3092\u4f7f\u3063\u305f\u7f6e\u63db\u30d1\u30bf\u30fc\u30f3\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u300creplace()\u300d\u306f\u3001<b>\u7279\u6b8a\u6587\u5b57\u3068\u6b63\u898f\u8868\u73fe\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3055\u3089\u306b\u7f6e\u63db\u3092\u52b9\u7387\u5316\u3067\u304d\u308b<\/b>\u306e\u3067\u5408\u308f\u305b\u3066\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\uff01<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b63\u898f\u8868\u73fe\u306e( )\u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3068\u3001\u5bfe\u8c61\u306e\u6587\u5b57\u3092\u300c$1\u300d\u300c$2\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3067\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u4f8b\u306f\u3001\u6b63\u898f\u8868\u73fe\u306e\u30b0\u30eb\u30fc\u30d7\u5316\u3092\u5229\u7528\u3057\u3066\u300c\u6027\u300d\u300c\u540d\u300d\u3092\u53cd\u5bfe\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = 'Sato Taro';\r\nvar result = str.replace( \/(\\w+)\\s(\\w+)\/, '$2 $1' );\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Taro Sato<\/pre>\n<p>\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3068\u3001\u300cSato\u300d\u304c\u300c$1\u300d\u306b\u4ee3\u5165\u3055\u308c\u300cTaro\u300d\u304c\u300c$2\u300d\u306b\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u7f6e\u63db\u3059\u308b\u6587\u5b57\u3092\u300c\u2019$2 $1\u2019\u300d\u3068\u53cd\u5bfe\u306b\u8a18\u8ff0\u3059\u308c\u3070\u300c\u59d3\u30fb\u540d\u300d\u3082\u53cd\u5bfe\u306b\u306a\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u7279\u6b8a\u6587\u5b57\u300c$&amp;\u300d\u3092\u5229\u7528\u3059\u308b\u3068\u4e00\u81f4\u3057\u305f\u5bfe\u8c61\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u7279\u5b9a\u306e\u6587\u5b57\u5217\u306b\u307e\u3068\u3081\u3066\u7f6e\u63db\u3057\u305f\u3044\u5834\u5408\u306b\u5f79\u7acb\u3061\u307e\u3059\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = 'a, div, p';\r\nvar result = str.replace( \/(a|p|div)\/g, '&lt;$&amp;&gt;' );\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">&lt;a&gt;, &lt;div&gt;, &lt;p&gt;<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6b63\u898f\u8868\u73fe\u3067\u300ca\u300d\u300cdiv\u300d\u300cp\u300d\u3092\u691c\u7d22\u3057\u3066\u300c$&amp;\u300d\u3067\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u3092\u300c&lt;$&amp;&gt;\u300d\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001HTML\u306e\u30bf\u30b0\u306b\u7f6e\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u308f\u3051\u3067\u3059\uff01<\/p>\n<h2>\u300creplace\u300d\u306e\u6d3b\u7528\u4e8b\u4f8b<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u3001replace\u3092\u6d3b\u7528\u3057\u305f\u5b9f\u8df5\u7684\u306a\u7f6e\u63db\u624b\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u4e3b\u306b\u3001\u6539\u884c\u30b3\u30fc\u30c9\u30fb\u7a7a\u767d\u30fb\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\u306b\u95a2\u9023\u3057\u305f\u7f6e\u63db\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6539\u884c\u30b3\u30fc\u30c9\u3092\u300c&lt;br&gt;\u300d\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306f\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3092\u6271\u3063\u305f\u7f6e\u63db\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u6539\u884c\u30b3\u30fc\u30c9\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u307e\u308c\u3066\u3044\u305f\u308a\u3001HTML\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306a\u3069\u304b\u3089\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u6271\u3046\u5834\u5408\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u6539\u884c\u30b3\u30fc\u30c9\u3092\u4f55\u3089\u304b\u306e\u6587\u5b57\u5217\u306b\u7f6e\u63db\u3059\u308b\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u300c\u6b63\u898f\u8868\u73fe\u300d\u3092\u4f7f\u3063\u3066\u62bd\u51fa\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true\">text.replace(\/\\r?\\n\/g, '&lt;br&gt;');\r\n<\/pre>\n<p>\u300ctext\u300d\u306b\u6539\u884c\u30b3\u30fc\u30c9\u4ed8\u304d\u306e\u6587\u5b57\u5217\u304c\u3042\u308b\u3068\u3057\u3066\u3001replace\u306b\u6b63\u898f\u8868\u73fe\u3067\u300c\/\\r?\\n\/g\u300d\u3068\u8a18\u8ff0\u3059\u308c\u3070\u6539\u884c\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3092\u300c&lt;br&gt;\u300d\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<h3>\u7a7a\u767d\u3092\u3059\u3079\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u6b21\u306b\u3001\u6587\u5b57\u5217\u306e\u4e2d\u306b\u7a7a\u767d\uff08\u30db\u30ef\u30a4\u30c8\u30b9\u30da\u30fc\u30b9\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u305d\u306e\u7a7a\u767d\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u8003\u3048\u65b9\u3068\u3057\u3066\u306f\u3001\u7a7a\u767d\u3092\u300c\u7a7a\u6587\u5b57\u300d\u306b\u7f6e\u63db\u3059\u308b\u3060\u3051\u3067\u3059\uff01<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:js decode:true\">var str = '\u3042\u3000 \u3044\u3046 \u3000\u3048  \u304a      \u304b\u304d\u3000\u304f \u3051 \u3053';\r\n  \r\nstr.replace(\/\\s+\/g, '');\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u534a\u89d2\u30fb\u5168\u89d2\u306e\u7a7a\u767d\u3084\u30bf\u30d6\u306a\u3069\u304c\u6587\u5b57\u5217\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066\u3001\u6b63\u898f\u8868\u73fe\u3067\u300c\\s+\u300d\u3068\u8a18\u8ff0\u3059\u308c\u3070\u9023\u7d9a\u3059\u308b\u7a7a\u767d\u3082\u542b\u3081\u3066\u3059\u3079\u3066\u7a7a\u6587\u5b57\u306b\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u6700\u7d42\u7684\u306b\u306f\u7a7a\u767d\u306e\u7121\u3044\u304d\u308c\u3044\u306a\u6587\u5b57\u5217\u3060\u3051\u304c\u6b8b\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3>\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u4eca\u5ea6\u306f\u3001\u300c\u201d \u201d\uff08\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\uff09\u300d\u306e\u7f6e\u63db\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01\uff08\u3053\u308c\u306f\u300c\u2019 \u2019\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30aa\u30fc\u30c8\uff09\u300d\u3082\u540c\u69d8\u3067\u3059\uff09<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u666e\u901a\u306b\u7f6e\u63db\u3092\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001replace()\u306e\u7b2c2\u5f15\u6570\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true\">var str = '\u3042\u3044\u3046\"\u3048\"\u304a';\r\n\r\nvar r = str.replace(\/\"\/g, \"'\");\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u306b\u300c&#8221; &#8220;\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\u3092\u62bd\u51fa\u3059\u308b\u306e\u306f\u300c\/&#8221;\/g\u300d\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u7b2c2\u5f15\u6570\u306e\u8a2d\u5b9a\u306f\u300c&#8221; &#8220;\u300d\u3067\u56f2\u3093\u3060\u4e2d\u306b\u300c&#8217;\u300d\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u9006\u306b\u3001\u30b7\u30f3\u30b0\u30eb\u30af\u30aa\u30fc\u30c8\u3092\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\u306b\u7f6e\u63db\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u300c&#8217; &#8216;\u300d\u3067\u56f2\u3093\u3060\u4e2d\u306b\u300c&#8221;\u300d\u3092\u8a18\u8ff0\u3059\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u610f\u5916\u306b\u9593\u9055\u3044\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u306a\u306e\u3067\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h2>\u300c\u30ab\u30f3\u30de\u300d\u306e\u7f6e\u63db<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u3001\u7f6e\u63db\u3059\u308b\u30b1\u30fc\u30b9\u3068\u3057\u3066\u3088\u304f\u4f7f\u308f\u308c\u308b\u300c,\uff08\u30ab\u30f3\u30de\uff09\u300d\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u4e3b\u306b\u3001\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3057\u305f\u30ab\u30f3\u30de\u306e\u300c\u9664\u53bb\u300d\u3068\u300c\u8ffd\u52a0\u300d\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5bfe\u8c61\u6587\u5b57\u5217\u306e\u30ab\u30f3\u30de\u3092\u3059\u3079\u3066\u9664\u53bb\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306f\u3001\u6587\u5b57\u5217\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u30ab\u30f3\u30de\u3092\u9664\u53bb\u3059\u308b\u65b9\u6cd5\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u8003\u3048\u65b9\u3068\u3057\u3066\u306f\u3001\u6587\u5b57\u5217\u5185\u306e\u30ab\u30f3\u30de\u3092\u62bd\u51fa\u3057\u3066\u300c\u7a7a\u6587\u5b57\u300d\u306b\u7f6e\u63db\u3059\u308c\u3070\u9664\u53bb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = '1,234,567';\r\n\r\nvar result = str.replace(\/,\/g, '');\r\n\r\nconsole.log( result );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">1234567<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u306b\u542b\u307e\u308c\u305f\u30ab\u30f3\u30de\u3092\u6b63\u898f\u8868\u73fe\u3067\u62bd\u51fa\u3057\u3066\u300c\u7a7a\u6587\u5b57\u300d\u306b\u7f6e\u63db\u3057\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\/,\/g\u300d\u3068\u3044\u3046\u8a18\u8ff0\u3067\u3001\u300cg\u300d\u30d5\u30e9\u30b0\u3092\u4f7f\u3063\u305f\u3059\u3079\u3066\u306e\u30ab\u30f3\u30de\u3092\u62bd\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u3001\u30ab\u30f3\u30de\u3060\u3051\u3067\u306a\u304f\u300c _ \u300d\u300c &#8211; \u300d\u306a\u3069\u306b\u3082\u5fdc\u7528\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\uff01<\/p>\n<h3>\u5bfe\u8c61\u6587\u5b57\u5217\u306b\u30ab\u30f3\u30de\u3092\u4ed8\u4e0e\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u6b21\u306b\u3001\u30ab\u30f3\u30de\u3092\u4ed8\u4e0e\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u6700\u3082\u591a\u3044\u30b1\u30fc\u30b9\u3068\u3057\u3066\u3001\u6570\u5024\u306e\u6587\u5b57\u5217\u3092\u300c3\u6841\u533a\u5207\u308a\u300d\u3067\u30ab\u30f3\u30de\u3092\u4ed8\u4e0e\u3057\u305f\u3044\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6b63\u898f\u8868\u73fe\u3068( )\u306b\u3088\u308b\u30b0\u30eb\u30fc\u30d7\u5316\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u300c123456789\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066\u300c\/^(\\d+)(\\d{3})\/\u300d\u306e\u3088\u3046\u306b\u6b63\u898f\u8868\u73fe\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u300c$1\u300d\u306b\u300c123456\u300d\u304c\u683c\u7d0d\u3055\u308c\u3066\u300c$2\u300d\u306b\u300c789\u300d\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u300c$1,$2\u300d\u3068\u6307\u5b9a\u3059\u3070\u300c123456,789\u300d\u306b\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u3053\u308c\u30923\u6841\u533a\u5207\u308a\u304c\u3067\u304d\u306a\u304f\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u305b\u3070\u3001\u3069\u3093\u306a\u6570\u5b57\u306e\u6587\u5b57\u5217\u3067\u30823\u6841\u3067\u30ab\u30f3\u30de\u3092\u4ed8\u4e0e\u3067\u304d\u307e\u3059\uff01<\/p>\n<p>\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = '12345678999999';\r\nvar tmp = str.replace(\/^(\\d+)(\\d{3})\/,\"$1,$2\");\r\n    \r\nwhile (str !== tmp) {\r\n    str = tmp;\r\n    tmp = str.replace(\/^(\\d+)(\\d{3})\/,\"$1,$2\");\r\n}\r\n\r\nconsole.log( str );<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">12,345,678,999,999<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6570\u5b57\u306e\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066( )\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3064\u3064\u7f6e\u63db\u6587\u5b57\u3092\u300c$1,$2\u300d\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001while\u6587\u30673\u6841\u305a\u3064\u30ab\u30f3\u30de\u304c\u533a\u5207\u308c\u306a\u304f\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u5b9f\u884c\u7d50\u679c\u306e\u3088\u3046\u306a\u30ab\u30f3\u30de\u533a\u5207\u308a\u304c\u5b9f\u73fe\u3067\u304d\u308b\u308f\u3051\u3067\u3059\uff01<\/p>\n<h2>\u95a2\u6570\u3067\u300creplace\u300d\u3092\u4f7f\u3046<\/h2>\n<p>\u3053\u308c\u307e\u3067\u300creplace()\u300d\u306e\u7b2c2\u5f15\u6570\u306b\u306f\u3001\u300c\u7f6e\u63db\u3059\u308b\u6587\u5b57\u300d\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u306f\u3053\u3053\u306b\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\uff01<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u5bfe\u8c61\u3068\u306a\u308b\u6587\u5b57\u3092\u62bd\u51fa\u3057\u305f\u3042\u3068\u306b\u3001\u72ec\u81ea\u306b\u4f5c\u3063\u305f\u95a2\u6570\u3067\u8907\u96d1\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u6d3b\u7528\u7bc4\u56f2\u304c\u3055\u3089\u306b\u30a2\u30c3\u30d7\u3059\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u4f8b\u3067\u306f\u3001\u5bfe\u8c61\u6587\u5b57\u3092\u3059\u3079\u3066\u5c0f\u6587\u5b57\u306b\u3059\u308b\u95a2\u6570\u3092\u7d44\u307f\u8fbc\u3093\u3060\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = 'Jane, MIKE, BoB';\r\n\r\n\/\/ \u5927\u6587\u5b57\u306e\u82f1\u8a9e\u3059\u3079\u3066\u306b\u95a2\u6570\u300ctoLower\u300d\u3092\u5b9f\u884c\u3059\u308b\r\nvar result = str.replace( \/[A-Z]\/g, toLower );\r\n\r\n\/\/ \u95a2\u6570\u306e\u4f5c\u6210\r\nfunction toLower( s ) {\r\n\r\n    \/\/ \u53d6\u5f97\u3057\u305f\u5bfe\u8c61\u6587\u5b57\u300cs\u300d\u3092\u5c0f\u6587\u5b57\u306b\u3059\u308b\r\n    return s.toLowerCase();\r\n\r\n}\r\n\r\nconsole.log( result );\r\n\r\n<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u2026<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">jane, mike, bob<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6b63\u898f\u8868\u73fe\u300c\/[A-Z]\/g\u300d\u3067\u5927\u6587\u5b57\u306e\u82f1\u8a9e\u3092\u3059\u3079\u3066\u62bd\u51fa\u3057\u3001\u95a2\u6570\u300ctoLower\u300d\u3092\u4f5c\u3063\u3066\u3059\u3079\u3066\u5c0f\u6587\u5b57\u306b\u5909\u63db\u3057\u305f\u5024\u3092\u8fd4\u3059\u3053\u3068\u3067\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u95a2\u6570\u3092\u4f7f\u3048\u3070\u300c\u5bfe\u8c61\u6587\u5b57\u300d\u3092\u597d\u304d\u306a\u3088\u3046\u306b\u51e6\u7406\u3057\u3066\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u5fdc\u7528\u7bc4\u56f2\u306f\u304b\u306a\u308a\u5e83\u3044\u3068\u8a00\u3048\u307e\u3059\uff01<\/p>\n<h2>\u300csplit() \/ join()\u300d\u306e\u7d44\u307f\u5408\u308f\u305b\u4f8b<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306f\u3001\u300creplace()\u300d\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u7f6e\u63db\u306e\u51e6\u7406\u3092\u884c\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u5b9f\u306f\u914d\u5217\u51e6\u7406\u3092\u4e0a\u624b\u304f\u5fdc\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u540c\u3058\u3088\u3046\u306b\u300c\u7f6e\u63db\u300d\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\uff01<\/p>\n<p>\u5229\u7528\u3059\u308b\u306e\u306f\u3001\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u3066\u914d\u5217\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u300csplit\u300d\u3068\u3001\u914d\u5217\u30c7\u30fc\u30bf\u30921\u3064\u306b\u7e4b\u304e\u5408\u308f\u305b\u308b\u300cjoin\u300d\u306e2\u3064\u3067\u3059\uff01<\/p>\n<p>\u300csplit\u300d\u306f\u3001\u6307\u5b9a\u3057\u305f\u5bfe\u8c61\u6587\u5b57\u306e\u3068\u3053\u308d\u3067\u5206\u5272\u3057\u3001\u914d\u5217\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3057\u3066\u3044\u304d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = 'Jane,Mike,Bob,John';\r\n\r\n\/\/ \u300c,\u300d\u306e\u3068\u3053\u308d\u3067\u6587\u5b57\u5217\u3092\u5206\u5272\u3059\u308b\r\nvar result = str.split( ',' );\r\n\r\nconsole.log( result );\r\n\r\n<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u2026<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">[ \"Jane\", \"Mike\", \"Bob\", \"John\" ]<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u300c , \u300d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u4eba\u7269\u540d\u3060\u3051\u3092\u62bd\u51fa\u3057\u3001\u914d\u5217\u30c7\u30fc\u30bf\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u300cjoin\u300d\u306f\u305d\u308c\u305e\u308c\u306e\u914d\u5217\u30c7\u30fc\u30bf\u30921\u3064\u306b\u7e4b\u304e\u5408\u308f\u305b\u308b\u51e6\u7406\u3092\u884c\u3046\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var str = [ 'Hello', 'My', 'name', 'is', 'Mike' ];\r\n\r\nvar result = str.join( ' ' );\r\n\r\nconsole.log( result );\r\n\r\n<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u2026<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Hello My name is Mike<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u300cjoin( &#8216; &#8216; )\u300d\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u914d\u5217\u30c7\u30fc\u30bf\u306b\u7a7a\u767d\u3092\u4ed8\u4e0e\u3057\u306a\u304c\u3089\u7e4b\u304e\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u300cjoin( &#8216;-&#8216; )\u300d\u306e\u3088\u3046\u306b\u30cf\u30a4\u30d5\u30f3\u3092\u4ed8\u4e0e\u3059\u308c\u3070\u3001\u300cHello-My-name-is-Mike\u300d\u306e\u3088\u3046\u306a\u7d50\u679c\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u300csplit\u300d\u3068\u300cjoin\u300d\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u307e\u3067\u3068\u540c\u3058\u3088\u3046\u306a\u300c\u7f6e\u63db\u300d\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u308f\u3051\u3067\u3059\uff01<\/p>\n<pre class=\"lang:js decode:true \">var str = 'user-01, user-02, user-03';\r\n\r\n\/\/ \u300csplit\u300d\u300cjoin\u300d\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u7f6e\u63db\u3092\u884c\u3046\r\nvar result = str.split( '-' ).join( '_' );\r\n\r\nconsole.log( result );\r\n\r\n<\/pre>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u2026<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">user_01, user_02, user_03<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u304b\u3089\u300c-\uff08\u30cf\u30a4\u30d5\u30f3\uff09\u300d\u306e\u7b87\u6240\u3067\u5206\u5272\u3057\u3066\u914d\u5217\u306b\u3057\u3001\u305d\u308c\u3092\u300c_\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u300d\u3092\u4ed8\u4e0e\u3057\u306a\u304c\u30891\u3064\u306b\u9023\u7d50\u3059\u308b\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7d50\u679c\u7684\u306b\u3001\u300creplace()\u300d\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u6642\u3068\u540c\u3058\u3088\u3046\u306b\u300c\u7f6e\u63db\u300d\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<h2>\u300creplace\u300d\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081<\/h2>\n<p>\u6700\u5f8c\u306b\u3001\u300creplace\u300d\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u57fa\u672c\u7684\u306areplace\u306e\u4f7f\u3044\u65b9\u3068\u3057\u3066\u3001\u300c_\u300d\u3092\u300c-\u300d\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true\">var str = 'user_123';\r\n\r\nresult = str.replace( '_', '-' );\r\n<\/pre>\n<p>replace\u306e\u7b2c1\u5f15\u6570\u306b\u7f6e\u63db\u5bfe\u8c61\u306e\u6587\u5b57\u3092\u8a2d\u5b9a\u3057\u3001\u7b2c2\u5f15\u6570\u306b\u7f6e\u63db\u3059\u308b\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u3082\u540c\u3058\u3053\u3068\u304c\u53ef\u80fd\u306a\u3046\u3048\u3001\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u5bfe\u8c61\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true\">var str = 'user_1, user_2, user_3';\r\n\r\nresult = str.replace(\/_\/g, '-');\r\n<\/pre>\n<p>\u6b63\u898f\u8868\u73fe\u3067\u300c\/_\/g\u300d\u306e\u3088\u3046\u306b\u5bfe\u8c61\u6587\u5b57\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u3059\u3079\u3066\u306e\u5bfe\u8c61\u6587\u5b57\u3092\u7f6e\u63db\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u7279\u6b8a\u6587\u5b57\u3092\u4f75\u7528\u3059\u308b\u3053\u3068\u3067\u52b9\u7387\u3088\u304f\u7f6e\u63db\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true\">var str = 'Sato Taro';\r\n\r\nresult = str.replace( \/(\\w+)\\s(\\w+)\/, '$2 $1' );\r\n<\/pre>\n<p>\u6b63\u898f\u8868\u73fe\u306e( )\u3067\u56f2\u3093\u3060\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u300c$1\u300d\u300c$2\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u306e\u4f8b\u3067\u306f\u3001\u59d3\u3068\u540d\u3092\u305d\u308c\u305e\u308c$1 \/ $2\u306b\u683c\u7d0d\u3057\u3066\u9006\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u59d3\u540d\u304c\u53cd\u5bfe\u306b\u306a\u3063\u3066\u53d6\u5f97\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001JavaScript\u306b\u304a\u3051\u308b\u3055\u307e\u3056\u307e\u306a\u300c\u7f6e\u63db\u300d\u624b\u6cd5\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30dd\u30a4\u30f3\u30c8\u3092\u3082\u3046\u4e00\u5ea6\u632f\u308a\u8fd4\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u300creplace()\u300d\u306f\u5bfe\u8c61\u6587\u5b57\u30921\u56de\u3060\u3051\u7f6e\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/b><\/li>\n<li><b>\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u591a\u5f69\u306a\u7f6e\u63db\u624b\u6cd5\u3092\u6271\u3048\u308b<\/b><\/li>\n<li><b>\u95a2\u6570\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u3067\u3001\u3055\u3089\u306b\u8907\u96d1\u306a\u6587\u5b57\u64cd\u4f5c\u3092\u884c\u3048\u308b<\/b><\/li>\n<li><b>\u300csplit() \/ join()\u300d\u3092\u4e0a\u624b\u304f\u6d3b\u7528\u3059\u308c\u3070\u300c\u7f6e\u63db\u300d\u3092\u5b9f\u73fe\u3067\u304d\u308b<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u3068\u3044\u3046\u5185\u5bb9\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u8e0f\u307e\u3048\u306a\u304c\u3089\u3001\u305c\u3072\u81ea\u5206\u306a\u308a\u306e\u300c\u7f6e\u63db\u300d\u6d3b\u7528\u65b9\u6cd5\u3092\u898b\u3064\u3051\u3066\u5b9f\u8df5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u6587\u5b57\u5217\u306e\u4e2d\u304b\u3089\u4efb\u610f\u306e\u6587\u5b57\u3092\u5225\u306e\u6587\u5b57\u306b\u7f6e\u63db\u3059\u308b\u300creplace()\u300d\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3092\u3057\u307e\u3057\u3087\u3046\uff01 JavaScript\u306b\u306f\u52b9\u7387\u3088\u304f\u300c\u7f6e\u63db\u300d\u304c\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u7c21\u5358\u306a\u65b9\u6cd5\u304b\u3089\u8907\u96d1\u306a\u624b\u6cd5\u307e\u3067\u4eba\u306b [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":69184,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2346],"tags":[95,641],"class_list":["post-21107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-study","tag-javascript","tag-replace"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/21107\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/21107\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-10T00:17:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:41:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01\",\"datePublished\":\"2017-04-10T00:17:01+00:00\",\"dateModified\":\"2024-05-06T02:41:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107\"},\"wordCount\":192,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/javascript-tutorial-top.png\",\"keywords\":[\"JavaScript\",\"replace\"],\"articleSection\":[\"Javascript\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107\",\"name\":\"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/javascript-tutorial-top.png\",\"datePublished\":\"2017-04-10T00:17:01+00:00\",\"dateModified\":\"2024-05-06T02:41:25+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/javascript-tutorial-top.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/javascript-tutorial-top.png\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21107#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/21107","og_locale":"ja_JP","og_type":"article","og_title":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/21107","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-04-10T00:17:01+00:00","article_modified_time":"2024-05-06T02:41:25+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png","type":"image\/png"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/21107#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/21107"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01","datePublished":"2017-04-10T00:17:01+00:00","dateModified":"2024-05-06T02:41:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/21107"},"wordCount":192,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/21107#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png","keywords":["JavaScript","replace"],"articleSection":["Javascript\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/21107","url":"https:\/\/www.sejuku.net\/blog\/21107","name":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/21107#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/21107#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png","datePublished":"2017-04-10T00:17:01+00:00","dateModified":"2024-05-06T02:41:25+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/21107#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/21107"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/21107#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/javascript-tutorial-top.png","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/21107#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010JavaScript\u5165\u9580\u3011replace\u306e\u6587\u5b57\u5217\u7f6e\u63db\u30fb\u6b63\u898f\u8868\u73fe\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/21107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=21107"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/21107\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/69184"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=21107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=21107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=21107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}