{"id":3139,"date":"2021-11-29T09:52:34","date_gmt":"2021-11-29T09:52:34","guid":{"rendered":"https:\/\/www.pythontutorial.net\/?page_id=3139"},"modified":"2021-12-03T07:48:47","modified_gmt":"2021-12-03T07:48:47","slug":"python-regex-character-set","status":"publish","type":"page","link":"https:\/\/www.pythontutorial.net\/python-regex\/python-regex-character-set\/","title":{"rendered":"Python Regex Character Set"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you learn about character sets in regular expressions including digits, words, whitespace, and the dot (.).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-python-regex-character-sets'>Introduction to Python regex character sets <a href=\"#introduction-to-python-regex-character-sets\" class=\"anchor\" id=\"introduction-to-python-regex-character-sets\" title=\"Anchor for Introduction to Python regex character sets\">#<\/a><\/h2>\n\n\n\n<p>A character set (or a character class) is a set of characters, for example, digits (from 0 to 9), alphabets (from a to z), and whitespace.<\/p>\n\n\n\n<p>A character set allows you to construct <a href=\"https:\/\/www.pythontutorial.net\/python-regex\/python-regular-expressions\/\">regular expressions<\/a> with patterns that match a string with one or more characters in a set.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='d-digit-character-set'>\\d: digit character set <a href=\"#d-digit-character-set\" class=\"anchor\" id=\"d-digit-character-set\" title=\"Anchor for \\d: digit character set\">#<\/a><\/h3>\n\n\n\n<p>Regular expressions use <code>\\d<\/code> to represent a digit character set that matches a single digit from <code>0<\/code> to <code>9<\/code>.<\/p>\n\n\n\n<p>The following example uses the <code>finditer()<\/code> function to match every single digit in a string using the <code>\\d<\/code> character set:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\ns = <span class=\"hljs-string\">'Python 3.0 was released in 2008'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\d'<\/span>, s)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">3<\/span>\n<span class=\"hljs-number\">0<\/span>\n<span class=\"hljs-number\">2<\/span>\n<span class=\"hljs-number\">0<\/span>\n<span class=\"hljs-number\">0<\/span>\n<span class=\"hljs-number\">8<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To match a group of two digits, you use the <code>\\d\\d<\/code>. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\ns = <span class=\"hljs-string\">'Python 3.0 was released in 2008'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\d\\d'<\/span>, s)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">20<\/span>\n<span class=\"hljs-number\">08<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Similarly, you can match a group of four digits using the <code>\\d\\d\\d\\d<\/code> pattern:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\ns = <span class=\"hljs-string\">'Python 3.0 was released in 2008'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\d\\d\\d\\d'<\/span>, s)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">2008<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Later, you&#8217;ll learn how to use <a href=\"https:\/\/www.pythontutorial.net\/python-regex\/python-regex-quantifiers\/\">quantifiers<\/a> to shorten the pattern. So instead of using the <code>\\d\\d\\d\\d<\/code> pattern, you can use the shorter one like <code>\\d{4}<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='w-the-word-character-set'>\\w: the word character set <a href=\"#w-the-word-character-set\" class=\"anchor\" id=\"w-the-word-character-set\" title=\"Anchor for \\w: the word character set\">#<\/a><\/h3>\n\n\n\n<p>Regular expressions use <code>\\w<\/code> to represent the word character set. The <code>\\w<\/code> matches a single ASCII character including Latin alphabet, digit, and underscore (<code>_<\/code>).<\/p>\n\n\n\n<p>The following example uses the <code>finditer()<\/code> function to match every single word character in a string using the <code>\\w<\/code> character set:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\ns = <span class=\"hljs-string\">'Python 3.0'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\w'<\/span>, s)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">P\ny\nt\nh\no\nn\n<span class=\"hljs-number\">3<\/span>\n<span class=\"hljs-number\">0<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Notice that the whitespace and <code>.<\/code> are not included in the matches.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='s-whitespace-character-set'>\\s : whitespace character set <a href=\"#s-whitespace-character-set\" class=\"anchor\" id=\"s-whitespace-character-set\" title=\"Anchor for \\s : whitespace character set\">#<\/a><\/h3>\n\n\n\n<p>The <code>\\s<\/code> matches whitespace including a space, a tab, a newline, a carriage return, and a vertical tab. <\/p>\n\n\n\n<p>The following example uses the whitespace character set to match a space in a string:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\ns = <span class=\"hljs-string\">'Python 3.0'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\s'<\/span>, s)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">&lt;re.Match object; span=(<span class=\"hljs-number\">6<\/span>, <span class=\"hljs-number\">7<\/span>), match=<span class=\"hljs-string\">' '<\/span>&gt;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='inverse-character-sets'>Inverse character sets <a href=\"#inverse-character-sets\" class=\"anchor\" id=\"inverse-character-sets\" title=\"Anchor for Inverse character sets\">#<\/a><\/h2>\n\n\n\n<p>A character set has an inverse character set that uses the same letter but in uppercase. The following table shows the character sets and their inverse ones:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Character set<\/th><th>Inverse character set<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>\\d<\/code><\/td><td><code>\\D<\/code><\/td><td>Match a single character except for a digit<\/td><\/tr><tr><td><code>\\w<\/code><\/td><td><code>\\W<\/code><\/td><td>Match a single character that is not a word character<\/td><\/tr><tr><td><code>\\s<\/code><\/td><td><code>\\S<\/code><\/td><td>Match a single character except for whitespace<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The following example uses the <code>\\D<\/code> to match the non-digit from a phone number:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\nphone_no = <span class=\"hljs-string\">'+1-(650)-513-0514'<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'\\D'<\/span>, phone_no)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">+\n-\n(\n)\n-\n-<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To turn the phone number  +1-(650)-513-0514  into the 16505130514, you can use the sub() function:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\nphone_no = re.sub(<span class=\"hljs-string\">'\\D'<\/span>, <span class=\"hljs-string\">''<\/span>, <span class=\"hljs-string\">'+1-(650)-513-0514'<\/span>)\nprint(phone_no)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-number\">16505130514<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this example, the <code>sub()<\/code> function replaces the character that matches the pattern <code>\\D<\/code> with the literal string <code>''<\/code> in the formatted phone number. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='the-dot-character-set'>The dot(.) character set <a href=\"#the-dot-character-set\" class=\"anchor\" id=\"the-dot-character-set\" title=\"Anchor for The dot(.) character set\">#<\/a><\/h3>\n\n\n\n<p>The dot (<code>.<\/code>) character set matches any single character except the new line (<code>\\n<\/code>). The following example uses the dot (.) character set to match every single character but the new line:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-15\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> re\n\nversion = <span class=\"hljs-string\">\"Python\\n4\"<\/span>\nmatches = re.finditer(<span class=\"hljs-string\">'.'<\/span>, version)\n<span class=\"hljs-keyword\">for<\/span> match <span class=\"hljs-keyword\">in<\/span> matches:\n    print(match.group())<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-15\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-16\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">P\ny\nt\nh\no\nn\n<span class=\"hljs-number\">4<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-16\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Use&nbsp;<code>\\d<\/code>&nbsp;character set to match any single digit.<\/li><li>Use&nbsp;<code>\\w<\/code>&nbsp;character set to match any single word character.<\/li><li>Use&nbsp;<code>\\s<\/code>&nbsp;character set to match any whitespace.<\/li><li>The&nbsp;<code>\\D<\/code>,&nbsp;<code>\\W<\/code>,&nbsp;<code>\\S<\/code>&nbsp;character set are the inverse sets of&nbsp;<code>\\d<\/code>,&nbsp;<code>\\w<\/code>, and&nbsp;<code>\\s<\/code>&nbsp;character set.<\/li><li>Use the dot character set (<code>.<\/code>) to match any character but a new line.<\/li><\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"3139\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/python-regex\/python-regex-character-set\/\"\n\t\t\t\tdata-post-title=\"Python Regex Character Set\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"3139\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/python-regex\/python-regex-character-set\/\"\n\t\t\t\tdata-post-title=\"Python Regex Character Set\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\t\t\t<input type=\"button\" name=\"wth-submit\" class=\"wth-btn wth-btn-submit\" id=\"wth-submit\" \/>\n\t\t\t<input type=\"button\" class=\"wth-btn wth-btn-cancel\" value=\"Cancel\" \/>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>in this tutorial, you learn about character sets in regular expressions including digits, words, whitespace, and the dot (.).<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3122,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3139","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/3139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/comments?post=3139"}],"version-history":[{"count":0,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/3139\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/3122"}],"wp:attachment":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/media?parent=3139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}