{"version":"1.0","description":"\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3060\u304c\u3001\u30c1\u30fc\u30e0\u5185\u306e\u8ab0\u3082\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 replaceAll\u3067\u306e\u5f8c\u65b9\u53c2\u7167 Groovy\u306e\u5834\u5408 Kotlin\u306e\u5834\u5408 \u632f\u308a\u8fd4\u308a replaceAll\u3067\u306e\u5f8c\u65b9\u53c2\u7167 \u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3001\u7b2c1\u5f15\u6570\u306e\u691c\u7d22\u6587\u5b57\u5217\u306b ( \uff5e ) \u3067\u56f2\u3093\u3060\u30b0\u30eb\u30fc\u30d7\u3092\u8a18\u8ff0\u3057\u3001\u7b2c2\u5f15\u6570\u306e\u7f6e\u63db\u6587\u5b57\u5217\u306b ${n} \u3084 $n \u3092\u8a18\u8ff0\u3059\u308b\u3068\u3001\u691c\u7d22\u6587\u5b57\u5185\u306e\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u6587\u5b57\u5217\u3092\u5f8c\u65b9\u53c2\u7167\u3067\u304d\u308b\u3002 \u307e\u305f\u3001 String#replaceFirst \u3067\u3082\u540c\u69d8\u306b\u7f6e\u63db\u53ef\u80fd\u3002 assert \"abc\".replaceAll(\"(^.)\", \"$1$1\").equals(\"aabc\"); assert \"abc\".replace\u2026","title":"Java\u306eString#replaceAll\u306b\u3088\u308b\u6b63\u898f\u8868\u73fe\u7f6e\u63db\u3067\u3082\u3001$1\u306a\u3069\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u6587\u5b57\u5217\u3092\u5f8c\u65b9\u53c2\u7167\u3067\u304d\u308b","blog_url":"https://hepokon365.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/hepokon365/","height":"190","published":"2022-03-27 23:46:33","blog_title":"\u6bce\u65e5\u3078\u3063\u307d\u3053","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhepokon365.hatenablog.com%2Fentry%2F2022%2F03%2F27%2F234633\" title=\"Java\u306eString#replaceAll\u306b\u3088\u308b\u6b63\u898f\u8868\u73fe\u7f6e\u63db\u3067\u3082\u3001$1\u306a\u3069\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u6587\u5b57\u5217\u3092\u5f8c\u65b9\u53c2\u7167\u3067\u304d\u308b - \u6bce\u65e5\u3078\u3063\u307d\u3053\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","type":"rich","author_name":"hepokon365","provider_name":"Hatena Blog","image_url":null,"categories":["Java","Groovy","Kotlin"],"width":"100%","url":"https://hepokon365.hatenablog.com/entry/2022/03/27/234633"}