{"id":110,"date":"2022-12-06T12:27:58","date_gmt":"2023-10-13T14:11:11","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T14:07:35","modified_gmt":"2025-07-31T05:07:35","slug":"python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u3053\u306e\u6587\u7ae0\u306f\u65e5\u672c\u8a9e\u306e\u300c\u7d39\u4ecb\u300d\u306b\u3064\u3044\u3066\u306e\u6587\u3067\u3059\u3002<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python\u3067\u6587\u5b57\u5217\u304b\u3089\u30db\u30ef\u30a4\u30c8\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u306e\u4f8b\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>Python\u306e\u6587\u5b57\u5217\u306f\u5909\u66f4\u4e0d\u53ef\u306e\u305f\u3081\u3001\u305d\u306e\u5024\u3092\u5909\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u6587\u5b57\u5217\u306e\u5024\u3092\u64cd\u4f5c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f\u65b0\u305f\u306a\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>GitHub\u304b\u3089Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30b8\u30bf\u30eb\u30aa\u30fc\u30b7\u30e3\u30f3\u306e\u30a2\u30d7\u30ea\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u3063\u3066\u5c55\u958b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30d7\u30ea\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306b\u3064\u3044\u3066\u306f\u30c7\u30b8\u30bf\u30eb\u30aa\u30fc\u30b7\u30e3\u30f3\u304c\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u4f8b\u3067\u306f\u3001Python\u306e\u5bfe\u8a71\u578b\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>s <span class=\"token operator\">=<\/span> <span class=\"token string\">'  Hello  World   From Silicon Cloud \\t\\n\\r\\tHi There  '<\/span>\r\n<\/code><\/pre>\n<p>\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Hello World From Silicon Cloud Hi There<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6587\u5b57\u5217\u306b\u306f\u3001\u30b9\u30da\u30fc\u30b9\uff08 \uff09\u3001\u30bf\u30d6\uff08\\t\uff09\u3001\u6539\u884c\uff08\\n\uff09\u3001\u304a\u3088\u3073\u30ad\u30e3\u30ea\u30c3\u30b8\u30ea\u30bf\u30fc\u30f3\uff08\\r\uff09\u306a\u3069\u3001\u7570\u306a\u308b\u7a2e\u985e\u306e\u7a7a\u767d\u6587\u5b57\u3068\u6539\u884c\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>strip()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5148\u982d\u304a\u3088\u3073\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u3002<\/h2>\n<p>Python\u306e\u6587\u5b57\u5217\u306estrip()\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6587\u5b57\u5217\u304b\u3089\u5148\u982d\u3068\u672b\u5c3e\u306e\u6587\u5b57\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u524a\u9664\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6587\u5b57\u306f\u30b9\u30da\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u6587\u5b57\u5217\u5909\u6570\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u5909\u6570\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8216; Hello World From Silicon Cloud \\t\\n\\r\\tHi There &#8216;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5148\u982d\u3068\u672b\u5c3e\u306e\u7a7a\u767d\u3092\u53d6\u308a\u9664\u304f\u305f\u3081\u306bstrip()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s.strip<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8216;Hello World From Silicon Cloud \\t\\n\\r\\tHi There&#8217;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u3001\u5148\u982d\u306e\u30b9\u30da\u30fc\u30b9\u3084\u672b\u5c3e\u306e\u30b9\u30da\u30fc\u30b9\u3060\u3051\u3092\u53d6\u308a\u9664\u304d\u305f\u3044\u5834\u5408\u306f\u3001lstrip()\u30e1\u30bd\u30c3\u30c9\u3068rstrip()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>replace()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u3059\u3079\u3066\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h2>\n<p>\u6587\u5b57\u5217\u304b\u3089\u3001\u5358\u8a9e\u306e\u9593\u3092\u542b\u3081\u3001\u3059\u3079\u3066\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u3001replace() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8216; Hello World From Silicon Cloud \\t\\n\\r\\tHi There &#8216;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7a7a\u767d\u3092\u7a7a\u6587\u5b57\u5217\u3067\u7f6e\u304d\u63db\u3048\u308b\u305f\u3081\u306b\u3001replace()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s.replace<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8221; &#8220;<\/span>, <span class=\"token string\">&#8220;&#8221;<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8216;HelloWorldFromSilicon Cloud\\t\\n\\r\\tHiThere&#8217;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>join()\u3084split()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u91cd\u8907\u3059\u308b\u30b9\u30da\u30fc\u30b9\u3068\u6539\u884c\u6587\u5b57\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/h2>\n<p>split()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u91cd\u8907\u3059\u308b\u3059\u3079\u3066\u306e\u7a7a\u767d\u6587\u5b57\u3068\u6539\u884c\u6587\u5b57\u3092\u53d6\u308a\u9664\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001split()\u30e1\u30bd\u30c3\u30c9\u306f\u6587\u5b57\u5217\u3092\u30ea\u30b9\u30c8\u306b\u5206\u5272\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u533a\u5207\u308a\u6587\u5b57\u3067\u3042\u308b\u4efb\u610f\u306e\u7a7a\u767d\u6587\u5b57\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305d\u308c\u304b\u3089\u3001join()\u30e1\u30bd\u30c3\u30c9\u306f\u30ea\u30b9\u30c8\u3092\u4e00\u3064\u306e\u6587\u5b57\u5217\u306b\u623b\u3057\u3001\u5358\u8a9e\u3054\u3068\u306b\u5358\u4e00\u306e\u30b9\u30da\u30fc\u30b9(&#8221; &#8220;)\u3067\u7d50\u5408\u3057\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8216; Hello World From Silicon Cloud \\t\\n\\r\\tHi There &#8216;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u91cd\u8907\u3057\u305f\u30b9\u30da\u30fc\u30b9\u3068\u6539\u884c\u6587\u5b57\u3092\u53d6\u308a\u9664\u304f\u305f\u3081\u306b\u3001join() \u30e1\u30bd\u30c3\u30c9\u3068 split() \u30e1\u30bd\u30c3\u30c9\u3092\u4e00\u7dd2\u306b\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\"><span class=\"token string\">&#8221; &#8220;<\/span>.join<span class=\"token punctuation\">(<\/span>s.split<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">))<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8216;Hello World From Silicon Cloud Hi There&#8217;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>translate\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u30b9\u30da\u30fc\u30b9\u3068\u6539\u884c\u6587\u5b57\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h2>\n<p>translate()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u7a7a\u767d\u6587\u5b57\u3068\u6539\u884c\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 translate()\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u3092\u8f9e\u66f8\u3084\u30de\u30c3\u30d4\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u6587\u5b57\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u6b21\u306e\u4f8b\u3067\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u8f9e\u66f8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u8f9e\u66f8\u306b\u306f\u3001\u3059\u3079\u3066\u306e\u7a7a\u767d\u6587\u5b57\u304c\u542b\u307e\u308c\u308bstring.whitespace\u6587\u5b57\u5217\u5b9a\u6570\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u8f9e\u66f8{ord(c): None for c in string.whitespace}\u306f\u3001string.whitespace\u306e\u3059\u3079\u3066\u306e\u6587\u5b57\u3092None\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<p>string\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3001string.whitespace\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\"><span class=\"token function\">import<\/span> string<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6587\u5b57\u5217\u5909\u6570\u3092\u5ba3\u8a00\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8216; Hello World From Silicon Cloud \\t\\n\\r\\tHi There &#8216;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5168\u3066\u306e\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u3001translate()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;&gt;&gt;\">s.translate<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span>ord<span class=\"token punctuation\">(<\/span>c<span class=\"token punctuation\">)<\/span>: None <span class=\"token keyword\">for<\/span> <span class=\"token for-or-select variable\">c<\/span> <span class=\"token keyword\">in<\/span> string.whitespace<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u51fa\u529b\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8216;HelloWorldFromSilicon CloudHiThere&#8217;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u3066\u3001\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u3002<\/h2>\n<p>re.sub() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u7a7a\u767d\u6587\u5b57\u3092\u30de\u30c3\u30c1\u3055\u305b\u3001\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u6b63\u898f\u8868\u73fe\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u3066\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30ebregexspaces.py\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\u6b63\u898f\u8868\u73fe\u30b9\u30da\u30fc\u30b9.py<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">import<\/span> re\r\n\r\ns <span class=\"token operator\">=<\/span> <span class=\"token string\">'  Hello  World   From Silicon Cloud \\t\\n\\r\\tHi There  '<\/span>\r\n\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'Remove all spaces using regex:\\n'<\/span><span class=\"token punctuation\">,<\/span> re<span class=\"token punctuation\">.<\/span>sub<span class=\"token punctuation\">(<\/span><span class=\"token string\">r\"\\s+\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"\"<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> sep<span class=\"token operator\">=<\/span><span class=\"token string\">''<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \\s matches all white spaces<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'Remove leading spaces using regex:\\n'<\/span><span class=\"token punctuation\">,<\/span> re<span class=\"token punctuation\">.<\/span>sub<span class=\"token punctuation\">(<\/span><span class=\"token string\">r\"^\\s+\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"\"<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> sep<span class=\"token operator\">=<\/span><span class=\"token string\">''<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># ^ matches start<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'Remove trailing spaces using regex:\\n'<\/span><span class=\"token punctuation\">,<\/span> re<span class=\"token punctuation\">.<\/span>sub<span class=\"token punctuation\">(<\/span><span class=\"token string\">r\"\\s+$\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"\"<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> sep<span class=\"token operator\">=<\/span><span class=\"token string\">''<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># $ matches end<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'Remove leading and trailing spaces using regex:\\n'<\/span><span class=\"token punctuation\">,<\/span> re<span class=\"token punctuation\">.<\/span>sub<span class=\"token punctuation\">(<\/span><span class=\"token string\">r\"^\\s+|\\s+$\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"\"<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> sep<span class=\"token operator\">=<\/span><span class=\"token string\">''<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># | for OR condition<\/span>\r\n<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>python3 regexspaces.py\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Remove all spaces using regex:\r\nHelloWorldFromSilicon CloudHiThere\r\nRemove leading spaces using regex:\r\nHello  World   From Silicon Cloud \t\r\n\tHi There  \r\nRemove trailing spaces using regex:\r\n  Hello  World   From Silicon Cloud \t\r\n\tHi There\r\nRemove leading and trailing spaces using regex:\r\nHello  World   From Silicon Cloud \t\r\n\tHi There\r\n<\/code><\/pre>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python\u3067\u6587\u5b57\u5217\u304b\u3089\u7a7a\u767d\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002Python\u306e\u6587\u5b57\u5217\u306b\u3064\u3044\u3066\u306e\u5b66\u7fd2\u3092\u7d9a\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u6587\u7ae0\u306f\u65e5\u672c\u8a9e\u306e\u300c\u7d39\u4ecb\u300d\u306b\u3064\u3044\u3066\u306e\u6587\u3067\u3059\u3002 \u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python\u3067\u6587\u5b57\u5217\u304b\u3089\u30db\u30ef\u30a4\u30c8\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u306e\u4f8b\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 Python\u306e\u6587\u5b57\u5217\u306f\u5909\u66f4\u4e0d\u53ef\u306e\u305f\u3081\u3001\u305d\u306e\u5024\u3092\u5909\u3048 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,26],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-python","tag-26"],"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>Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-13T14:11:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T05:07:35+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\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=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\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\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-10-13T14:11:11+00:00\",\"dateModified\":\"2025-07-31T05:07:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\"}]},{\"@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\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5","og_description":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-13T14:11:11+00:00","article_modified_time":"2025-07-31T05:07:35+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-10-13T14:11:11+00:00","dateModified":"2025-07-31T05:07:35+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5\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\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u3067\u6587\u5b57\u5217\u5185\u306e\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u306e\u65b9\u6cd5"}]},{"@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\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e5%86%85%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":325699,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions\/325699"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}