{"id":795,"date":"2023-09-14T04:47:30","date_gmt":"2023-07-16T01:52:57","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/"},"modified":"2025-08-01T02:32:09","modified_gmt":"2025-07-31T17:32:09","slug":"%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/","title":{"rendered":"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002"},"content":{"rendered":"<p>Java\u306e\u6b63\u898f\u8868\u73fe\u3078\u3088\u3046\u3053\u305d\u3002Java\u3067\u306f\u3053\u308c\u306f\u6b63\u898f\u8868\u73fe\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u305f\u6642\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u306f\u79c1\u306b\u3068\u3063\u3066\u60aa\u5922\u3067\u3057\u305f\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u306e\u3092\u52a9\u3051\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u79c1\u3082\u3053\u3053\u306b\u623b\u3063\u3066Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u5b66\u7fd2\u3092\u632f\u308a\u8fd4\u308a\u307e\u3059\u3002<\/p>\n<h2>Java\u306b\u304a\u3051\u308b\u6b63\u898f\u8868\u73fe<\/h2>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u306f\u3001\u6587\u5b57\u5217\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6b63\u898f\u8868\u73fe\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u691c\u7d22\u3001\u7de8\u96c6\u3001\u64cd\u4f5c\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b63\u898f\u8868\u73fe\u306f\u3001\u8a00\u8a9e\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u304c\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u306fPerl\u306b\u6700\u3082\u985e\u4f3c\u3057\u3066\u3044\u307e\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u30af\u30e9\u30b9\u306f\u3001java.util.regex\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5b58\u5728\u3057\u30013\u3064\u306e\u30af\u30e9\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d1\u30bf\u30fc\u30f3\uff1a\u30d1\u30bf\u30fc\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u6b63\u898f\u8868\u73fe\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002 \u30d1\u30bf\u30fc\u30f3\u30af\u30e9\u30b9\u306b\u306f\u516c\u958b\u3055\u308c\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u306a\u304f\u3001\u6b63\u898f\u8868\u73fe\u306e\u5f15\u6570\u3092\u6e21\u3057\u3066\u30d1\u30bf\u30fc\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u306e\u516c\u958b\u3055\u308c\u305fstatic\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b&#8221;compile&#8221;\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>\u30de\u30c3\u30c1\u30e3\u30fc\uff1a\u30de\u30c3\u30c1\u30e3\u30fc\u306f\u3001\u5165\u529b\u6587\u5b57\u5217\u306e\u30d1\u30bf\u30fc\u30f3\u3068\u4f5c\u6210\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30de\u30c3\u30c1\u30f3\u30b0\u3059\u308bJava\u306e\u6b63\u898f\u8868\u73fe\u30a8\u30f3\u30b8\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002 \u30de\u30c3\u30c1\u30e3\u30fc\u30af\u30e9\u30b9\u306b\u306f\u516c\u958b\u3055\u308c\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u306a\u304f\u3001\u30d1\u30bf\u30fc\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30de\u30c3\u30c1\u30e3\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5165\u529b\u6587\u5b57\u5217\u3092\u5f15\u6570\u306b\u3057\u3066\u30de\u30c3\u30c1\u30e3\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 \u305d\u306e\u5f8c\u3001regex\u30d1\u30bf\u30fc\u30f3\u3068\u5165\u529bString\u304c\u4e00\u81f4\u3059\u308b\u304b\u3069\u3046\u304b\u306b\u57fa\u3065\u3044\u3066\u771f\u507d\u5024\u306e\u7d50\u679c\u3092\u8fd4\u3059&#8221;matches&#8221;\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>PatternSyntaxException\uff1a\u6b63\u898f\u8868\u73fe\u306e\u69cb\u6587\u304c\u6b63\u3057\u304f\u306a\u3044\u5834\u5408\u3001PatternSyntaxException\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u300cJava\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u984c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.util;\r\n\r\nimport java.util.regex.*;\r\n\r\npublic class PatternExample {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tPattern pattern = Pattern.compile(\".xx.\");\r\n\t\tMatcher matcher = pattern.matcher(\"MxxY\");\r\n\t\tSystem.out.println(\"Input String matches regex - \"+matcher.matches());\r\n\t\t\/\/ bad regular expression\r\n\t\tpattern = Pattern.compile(\"*xx*\");\r\n\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306eJava\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Input String matches regex - true\r\nException in thread \"main\" java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0\r\n*xx*\r\n^\r\n\tat java.util.regex.Pattern.error(Pattern.java:1924)\r\n\tat java.util.regex.Pattern.sequence(Pattern.java:2090)\r\n\tat java.util.regex.Pattern.expr(Pattern.java:1964)\r\n\tat java.util.regex.Pattern.compile(Pattern.java:1665)\r\n\tat java.util.regex.Pattern.(Pattern.java:1337)\r\n\tat java.util.regex.Pattern.compile(Pattern.java:1022)\r\n\tat com.scdev.util.PatternExample.main(PatternExample.java:13)\r\n<\/code><\/pre>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u306fString\u3092\u4e2d\u5fc3\u306b\u56de\u3063\u3066\u304a\u308a\u3001Java 1.4\u3067\u306fString\u30af\u30e9\u30b9\u304c\u62e1\u5f35\u3055\u308c\u3001regex\u30d1\u30bf\u30fc\u30f3\u306e\u30de\u30c3\u30c1\u30f3\u30b0\u3092\u884c\u3046matches\u30e1\u30bd\u30c3\u30c9\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5185\u90e8\u7684\u306b\u306fPattern\u30af\u30e9\u30b9\u3068Matcher\u30af\u30e9\u30b9\u304c\u4f7f\u308f\u308c\u3066\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u304c\u3001\u660e\u3089\u304b\u306b\u30b3\u30fc\u30c9\u884c\u6570\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Pattern\u30af\u30e9\u30b9\u306b\u306f\u3001regex\u3068\u5165\u529b\u306eString\u3092\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u3089\u3092\u30de\u30c3\u30c1\u30f3\u30b0\u3057\u305f\u5f8c\u306b\u30d6\u30fc\u30eb\u5024\u306e\u7d50\u679c\u3092\u8fd4\u3059matches\u30e1\u30bd\u30c3\u30c9\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306fJava\u3067\u6b63\u898f\u8868\u73fe\u3068\u5165\u529b\u306eString\u3092\u30de\u30c3\u30c1\u30f3\u30b0\u3059\u308b\u306e\u306b\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>String str = \"bbb\";\r\nSystem.out.println(\"Using String matches method: \"+str.matches(\".bb\"));\r\nSystem.out.println(\"Using Pattern matches method: \"+Pattern.matches(\".bb\", str));\r\n<\/code><\/pre>\n<p>\u3082\u3057\u5165\u529b\u6587\u5b57\u5217\u3092\u30d1\u30bf\u30fc\u30f3\u3068\u4e00\u81f4\u3055\u305b\u308b\u3060\u3051\u3067\u3042\u308c\u3070\u3001\u5358\u7d14\u306a\u6587\u5b57\u5217\u306e\u4e00\u81f4\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u6642\u9593\u3068\u30b3\u30fc\u30c9\u306e\u884c\u6570\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002\u5165\u529b\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3084\u30d1\u30bf\u30fc\u30f3\u3092\u518d\u5229\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u306e\u307f\u3001Pattern\u30af\u30e9\u30b9\u3068Matches\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3079\u304d\u3067\u3059\u3002\u6b63\u898f\u8868\u73fe\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u5de6\u304b\u3089\u53f3\u306b\u6587\u5b57\u5217\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u4e00\u5ea6\u30bd\u30fc\u30b9\u306e\u6587\u5b57\u304c\u30de\u30c3\u30c1\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u3068\u3001\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3001\u6b63\u898f\u8868\u73fe&#8221;121&#8243;\u306f\u3001&#8221;_121____121&#8243;\u3068\u3057\u3066\u306e\u307f\u300c31212142121\u300d\u306b2\u56de\u4e00\u81f4\u3057\u307e\u3059\u3002<\/p>\n<h3>Java\u306b\u304a\u3051\u308b\u6b63\u898f\u8868\u73fe &#8211; \u4e00\u822c\u7684\u306a\u30de\u30c3\u30c1\u30f3\u30b0\u30b7\u30f3\u30dc\u30eb<\/h3>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Regular Expression<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>.<\/td>\n<td>Matches any single character<\/td>\n<td>(\u201c\u2026\u201d, \u201ca%\u201d) \u2013 true(\u201c\u2026\u201d, \u201c.a\u201d) \u2013 true (\u201c\u2026\u201d, \u201ca\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>^aaa<\/td>\n<td>Matches aaa regex at the beginning of the line<\/td>\n<td>(\u201c^a.c.\u201d, \u201cabcd\u201d) \u2013 true (\u201c^a\u201d, \u201cac\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>aaa$<\/td>\n<td>Matches regex aaa at the end of the line<\/td>\n<td>(\u201c\u2026cd$\u201d, \u201cabcd\u201d) \u2013 true(\u201ca$\u201d, \u201ca\u201d) \u2013 true (\u201ca$\u201d, \u201caca\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>[abc]<\/td>\n<td>Can match any of the letter a, b or c. [] are known as character classes.<\/td>\n<td>(\u201c^[abc]d.\u201d, \u201cad9\u201d) \u2013 true(\u201c[ab].d$\u201d, \u201cbad\u201d) \u2013 true (\u201c[ab]x\u201d, \u201ccx\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>[abc][12]<\/td>\n<td>Can match a, b or c followed by 1 or 2<\/td>\n<td>(\u201c[ab][12].\u201d, \u201ca2#\u201d) \u2013 true(\u201c[ab]\u2026[12]\u201d, \u201cacd2\u201d) \u2013 true (\u201c[ab][12]\u201d, \u201cc2\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>[^abc]<\/td>\n<td>When ^ is the first character in [], it negates the pattern, matches anything except a, b or c<\/td>\n<td>(\u201c[^ab][^12].\u201d, \u201cc3#\u201d) \u2013 true(\u201c[^ab]\u2026[^12]\u201d, \u201cxcd3\u201d) \u2013 true (\u201c[^ab][^12]\u201d, \u201cc2\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>[a-e1-8]<\/td>\n<td>Matches ranges between a to e or 1 to 8<\/td>\n<td>(\u201c[a-e1-3].\u201d, \u201cd#\u201d) \u2013 true(\u201c[a-e1-3]\u201d, \u201c2\u201d) \u2013 true (\u201c[a-e1-3]\u201d, \u201cf2\u201d) \u2013 false<\/td>\n<\/tr>\n<tr>\n<td>xx<\/td>\n<td>yy<\/td>\n<td>Matches regex xx or yy<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>Java\u306e\u6b63\u898f\u8868\u73fe\u30e1\u30bf\u30ad\u30e3\u30e9\u30af\u30bf\u30fc<\/h3>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30e1\u30bf\u6587\u5b57\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4e00\u822c\u7684\u306a\u4e00\u81f4\u30d1\u30bf\u30fc\u30f3\u306e\u305f\u3081\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Regular Expression<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\\d<\/td>\n<td>Any digits, short of [0-9]<\/td>\n<\/tr>\n<tr>\n<td>\\D<\/td>\n<td>Any non-digit, short for [^0-9]<\/td>\n<\/tr>\n<tr>\n<td>\\s<\/td>\n<td>Any whitespace character, short for [\\t\\n\\x0B\\f\\r]<\/td>\n<\/tr>\n<tr>\n<td>\\S<\/td>\n<td>Any non-whitespace character, short for [^\\s]<\/td>\n<\/tr>\n<tr>\n<td>\\w<\/td>\n<td>Any word character, short for [a-zA-Z_0-9]<\/td>\n<\/tr>\n<tr>\n<td>\\W<\/td>\n<td>Any non-word character, short for [^\\w]<\/td>\n<\/tr>\n<tr>\n<td>\\b<\/td>\n<td>A word boundary<\/td>\n<\/tr>\n<tr>\n<td>\\B<\/td>\n<td>A non word boundary<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u6b63\u898f\u8868\u73fe\u3067\u30e1\u30bf\u6587\u5b57\u3092\u901a\u5e38\u306e\u6587\u5b57\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f2\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u300c\u30e1\u30bf\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u524d\u306b\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5(\\)\u3092\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30e1\u30bf\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\\Q\uff08\u5f15\u7528\u3092\u958b\u59cb\u3059\u308b\uff09\u3068\\E\uff08\u5f15\u7528\u3092\u7d42\u4e86\u3059\u308b\uff09\u306e\u9593\u306b\u4fdd\u6301\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/ol>\n<h3>Java\u306b\u304a\u3051\u308b\u6b63\u898f\u8868\u73fe &#8211; \u91cf\u6307\u5b9a\u5b50<\/h3>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u30af\u30a9\u30f3\u30bf\u30a4\u30d5\u30a1\u30a4\u30a2\u306f\u3001\u4e00\u81f4\u3059\u308b\u6587\u5b57\u306e\u51fa\u73fe\u56de\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Regular Expression<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>x?<\/td>\n<td>x occurs once or not at all<\/td>\n<\/tr>\n<tr>\n<td>X*<\/td>\n<td>X occurs zero or more times<\/td>\n<\/tr>\n<tr>\n<td>X+<\/td>\n<td>X occurs one or more times<\/td>\n<\/tr>\n<tr>\n<td>X{n}<\/td>\n<td>X occurs exactly n times<\/td>\n<\/tr>\n<tr>\n<td>X{n,}<\/td>\n<td>X occurs n or more times<\/td>\n<\/tr>\n<tr>\n<td>X{n,m}<\/td>\n<td>X occurs at least n times but not more than m times<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u91cf\u6307\u5b9a\u5b50\u306f\u3001\u6587\u5b57\u30af\u30e9\u30b9\u3084\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u3068\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001[abc]+\u306f\u3001a\u3001b\u3001\u307e\u305f\u306fc\u30921\u56de\u4ee5\u4e0a\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002 (abc)+\u306f\u3001\u300cabc\u300d\u3068\u3044\u3046\u30b0\u30eb\u30fc\u30d7\u30921\u56de\u4ee5\u4e0a\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>Java\u306b\u304a\u3051\u308b\u6b63\u898f\u8868\u73fe &#8211; \u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7<\/h3>\n<p>Java\u306e\u6b63\u898f\u8868\u73fe\u3067\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u306f\u8907\u6570\u306e\u6587\u5b57\u3092\u5358\u4e00\u306e\u5358\u4f4d\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002()\u3092\u4f7f\u7528\u3057\u3066\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u306b\u4e00\u81f4\u3059\u308b\u5165\u529b\u6587\u5b57\u5217\u306e\u90e8\u5206\u306f\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u3001\u30d0\u30c3\u30af\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u518d\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002matcher.groupCount\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u30d1\u30bf\u30fc\u30f3\u3067\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u306e\u6570\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001((a)(bc))\u306b\u306f3\u3064\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059- ((a)(bc))\u3001(a)\u3001(bc)\u3002\u30d0\u30c3\u30af\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f\u3001\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\uff08\\\uff09\u3068\u30b0\u30eb\u30fc\u30d7\u306e\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u3001\u6b63\u898f\u8868\u73fe\u5185\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u3068\u30d0\u30c3\u30af\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f\u6df7\u4e71\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u4f8b\u3092\u4f7f\u3063\u3066\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>System.out.println(Pattern.matches(\"(\\\\w\\\\d)\\\\1\", \"a2a2\")); \/\/true\r\nSystem.out.println(Pattern.matches(\"(\\\\w\\\\d)\\\\1\", \"a2b2\")); \/\/false\r\nSystem.out.println(Pattern.matches(\"(AB)(B\\\\d)\\\\2\\\\1\", \"ABB2B2AB\")); \/\/true\r\nSystem.out.println(Pattern.matches(\"(AB)(B\\\\d)\\\\2\\\\1\", \"ABB2B3AB\")); \/\/false\r\n<\/code><\/pre>\n<p>\u6700\u521d\u306e\u4f8b\u3067\u306f\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u6700\u521d\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u30b0\u30eb\u30fc\u30d7\u306f(\\w\\d)\u3067\u3042\u308a\u3001&#8221;a2a2&#8243;\u3068\u3044\u3046\u30a4\u30f3\u30d7\u30c3\u30c8\u6587\u5b57\u5217\u3068\u30de\u30c3\u30c1\u3059\u308b\u3068\u3001&#8221;a2&#8243;\u3068\u3044\u3046\u5024\u304c\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\\1\u306f&#8221;a2&#8243;\u3092\u6307\u3057\u3066\u304a\u308a\u3001\u3057\u305f\u304c\u3063\u3066\u771f\u3092\u8fd4\u3057\u307e\u3059\u3002\u540c\u3058\u7406\u7531\u3067\u30012\u756a\u76ee\u306e\u6587\u306f\u507d\u3092\u51fa\u529b\u3057\u307e\u3059\u30023\u756a\u76ee\u30684\u756a\u76ee\u306e\u6587\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u81ea\u5206\u3067\u7406\u89e3\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002:) \u3067\u306f\u3001Pattern\u30af\u30e9\u30b9\u3068Matcher\u30af\u30e9\u30b9\u306e\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u79c1\u305f\u3061\u306f\u30d5\u30e9\u30b0\u3092\u4f7f\u7528\u3057\u3066Pattern\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Pattern.CASE_INSENSITIVE\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u305b\u305a\u306b\u30de\u30c3\u30c1\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Pattern\u30af\u30e9\u30b9\u306f\u307e\u305f\u3001String\u30af\u30e9\u30b9\u306esplit()\u30e1\u30bd\u30c3\u30c9\u306b\u4f3c\u305fsplit(String)\u30e1\u30bd\u30c3\u30c9\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Pattern\u30af\u30e9\u30b9\u306etoString()\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u6b63\u898f\u8868\u73fe\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Matcher\u30af\u30e9\u30b9\u306b\u306fstart()\u30e1\u30bd\u30c3\u30c9\u3068end()\u30e1\u30bd\u30c3\u30c9\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30e1\u30bd\u30c3\u30c9\u3082\u3042\u308a\u3001\u30de\u30c3\u30c1\u30f3\u30b0\u304c\u5165\u529b\u6587\u5b57\u5217\u5185\u306e\u3069\u3053\u3067\u898b\u3064\u304b\u3063\u305f\u304b\u3092\u6b63\u78ba\u306b\u793a\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Matcher\u30af\u30e9\u30b9\u306f\u307e\u305f\u3001\u6587\u5b57\u5217\u306e\u7f6e\u63db\u306b\u4f7f\u7528\u3059\u308breplaceAll(String replacement)\u30e1\u30bd\u30c3\u30c9\u3068replaceFirst(String replacement)\u30e1\u30bd\u30c3\u30c9\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/ol>\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3001\u3053\u308c\u3089\u306eJava\u306e\u6b63\u898f\u8868\u73fe\u30e1\u30bd\u30c3\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.util;\r\n\r\nimport java.util.regex.Matcher;\r\nimport java.util.regex.Pattern;\r\n\r\npublic class RegexExamples {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/ using pattern with flags\r\n\t\tPattern pattern = Pattern.compile(\"ab\", Pattern.CASE_INSENSITIVE);\r\n\t\tMatcher matcher = pattern.matcher(\"ABcabdAb\");\r\n\t\t\/\/ using Matcher find(), group(), start() and end() methods\r\n\t\twhile (matcher.find()) {\r\n\t\t\tSystem.out.println(\"Found the text \\\"\" + matcher.group()\r\n\t\t\t\t\t+ \"\\\" starting at \" + matcher.start()\r\n\t\t\t\t\t+ \" index and ending at index \" + matcher.end());\r\n\t\t}\r\n\r\n\t\t\/\/ using Pattern split() method\r\n\t\tpattern = Pattern.compile(\"\\\\W\");\r\n\t\tString[] words = pattern.split(\"one@two#three:four$five\");\r\n\t\tfor (String s : words) {\r\n\t\t\tSystem.out.println(\"Split using Pattern.split(): \" + s);\r\n\t\t}\r\n\r\n\t\t\/\/ using Matcher.replaceFirst() and replaceAll() methods\r\n\t\tpattern = Pattern.compile(\"1*2\");\r\n\t\tmatcher = pattern.matcher(\"11234512678\");\r\n\t\tSystem.out.println(\"Using replaceAll: \" + matcher.replaceAll(\"_\"));\r\n\t\tSystem.out.println(\"Using replaceFirst: \" + matcher.replaceFirst(\"_\"));\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eJava\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Found the text \"AB\" starting at 0 index and ending at index 2\r\nFound the text \"ab\" starting at 3 index and ending at index 5\r\nFound the text \"Ab\" starting at 6 index and ending at index 8\r\nSplit using Pattern.split(): one\r\nSplit using Pattern.split(): two\r\nSplit using Pattern.split(): three\r\nSplit using Pattern.split(): four\r\nSplit using Pattern.split(): five\r\nUsing replaceAll: _345_678\r\nUsing replaceFirst: _34512678\r\n<\/code><\/pre>\n<p>Java\u306b\u304a\u3051\u308b\u6b63\u898f\u8868\u73fe\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u6700\u521d\u306fJava\u306e\u6b63\u898f\u8868\u73fe\u306f\u96e3\u3057\u304f\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3057\u3070\u3089\u304f\u4f7f\u3063\u3066\u307f\u308b\u3068\u7c21\u5358\u306b\u5b66\u3073\u3001\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u306eGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3001\u5b8c\u5168\u306a\u30b3\u30fc\u30c9\u3068\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3092\u3055\u3089\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u306e\u6b63\u898f\u8868\u73fe\u3078\u3088\u3046\u3053\u305d\u3002Java\u3067\u306f\u3053\u308c\u306f\u6b63\u898f\u8868\u73fe\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u305f\u6642\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u306f\u79c1\u306b\u3068\u3063\u3066\u60aa\u5922\u3067\u3057\u305f\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u3001Java\u306e\u6b63\u898f\u8868\u73fe\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u306e\u3092\u52a9\u3051\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-795","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\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.silicloud.com\/ja\/blog\/\u6b63\u898f\u8868\u73fe\u306f\u3001java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002java\u306e\u6b63\u898f\u8868\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002\" \/>\n<meta property=\"og:description\" content=\"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u6b63\u898f\u8868\u73fe\u306f\u3001java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002java\u306e\u6b63\u898f\u8868\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-16T01:52:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:32:09+00:00\" \/>\n<meta name=\"author\" content=\"\u685c, \u6625\u6a39\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u685c, \u6625\u6a39\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"17\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/\",\"name\":\"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-07-16T01:52:57+00:00\",\"dateModified\":\"2025-07-31T17:32:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341\"},\"description\":\"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341\",\"name\":\"\u685c, \u6625\u6a39\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g\",\"caption\":\"\u685c, \u6625\u6a39\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/sakuraharuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002 - Blog - Silicon Cloud","description":"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\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.silicloud.com\/ja\/blog\/\u6b63\u898f\u8868\u73fe\u306f\u3001java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002java\u306e\u6b63\u898f\u8868\/","og_locale":"ja_JP","og_type":"article","og_title":"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002","og_description":"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u6b63\u898f\u8868\u73fe\u306f\u3001java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002java\u306e\u6b63\u898f\u8868\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-16T01:52:57+00:00","article_modified_time":"2025-07-31T17:32:09+00:00","author":"\u685c, \u6625\u6a39","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u685c, \u6625\u6a39","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/","name":"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-07-16T01:52:57+00:00","dateModified":"2025-07-31T17:32:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341"},"description":"\u6b63\u898f\u8868\u73fe\u306fJava\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6b63\u898f\u8868\u73fe\u306f\u3001Java\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002Java\u306e\u6b63\u898f\u8868\u73fe\u306e\u4f8b\u3067\u3059\u3002"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/ff22288af1a5455571aff7586b0fb341","name":"\u685c, \u6625\u6a39","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cee48863f3d4fd7fef222498f3e71b82312aee42b7257a2dbde56394ca4e19de?s=96&d=mm&r=g","caption":"\u685c, \u6625\u6a39"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/sakuraharuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%af%e3%80%81java%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a7%e3%81%99%e3%80%82java%e3%81%ae%e6%ad%a3%e8%a6%8f%e8%a1%a8\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":45109,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions\/45109"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}