{"id":1911,"date":"2023-06-01T11:02:31","date_gmt":"2023-06-01T04:02:31","guid":{"rendered":"https:\/\/csharptutorial.net\/?page_id=1911"},"modified":"2023-06-01T11:02:33","modified_gmt":"2023-06-01T04:02:33","slug":"regex-quantifiers","status":"publish","type":"page","link":"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/regex-quantifiers\/","title":{"rendered":"Regex Quantifiers"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn about regex quantifiers that specify the quantity of the preceding element in a regular expression pattern.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to the Regex Quantifiers<\/h2>\n\n\n\n<p>The digit <a href=\"https:\/\/csharptutorial.net\/csharp-regular-expression\/csharp-regex-character-classes\/\">character class<\/a> <code>\\d<\/code> matches any digit e.g., 0 to 9. To match two consecutive digits, you need to repeat the digit character class like <code>\\d\\d<\/code>. Similarly, to match a group of four digits, you use four digit character classes <code>\\d\\d\\d\\d<\/code>.<\/p>\n\n\n\n<p>If you want to match one or more digits, then this solution does not work because you don&#8217;t know the number of digits that you want to repeat. That&#8217;s why the quantifiers come to the rescue.<\/p>\n\n\n\n<p>Quantifiers are metacharacters in regular expressions that specify the quantity of the preceding element. They define a specified number of times a particular element should occur in an input string when matching.<\/p>\n\n\n\n<p>For example, the quantifier + matches the occurrences of the preceding element one or more times. Therefore, the <code>\\d+<\/code> matches one or more digit characters.<\/p>\n\n\n\n<p>The following table lists all the quantifiers and their meanings:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Quantifier<\/th><th>Name<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td>*<\/td><td>Asterisk<\/td><td>Match the occurrences of the preceding element zero or more times.<\/td><\/tr><tr><td>+<\/td><td>Plus<\/td><td>Match the occurrences of the preceding element one or more times.<\/td><\/tr><tr><td>?<\/td><td>Question Mark<\/td><td>Match the occurrences of the preceding element zero or one time.<\/td><\/tr><tr><td>{&nbsp;<em>n<\/em>&nbsp;}<\/td><td>Curly Braces<\/td><td>Match the occurrences of the preceding element exactly&nbsp;n&nbsp;times.<\/td><\/tr><tr><td>{&nbsp;<em>n<\/em>&nbsp;,}<\/td><td>Curly Braces<\/td><td>Match the occurrences of the preceding element at least&nbsp;n&nbsp;times.<\/td><\/tr><tr><td>{&nbsp;<em>n<\/em>&nbsp;,&nbsp;<em>m<\/em>&nbsp;}<\/td><td>Curly Braces<\/td><td>Match the occurrences of the preceding element from&nbsp;n&nbsp;to&nbsp;m&nbsp;times.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Regex Quantifier examples<\/h2>\n\n\n\n<p>Let&#8217;s take some examples of using the regex quantifiers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1) Matching the occurrences of the preceding element zero or more times (*)<\/h3>\n\n\n\n<p>The following example uses the quantifier (<code>*<\/code>) to match a text that starts with zero or more characters and ends with the letters &#8220;<code>at<\/code>&#8220;:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"The cat sat on the mat at the park.\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\w*at\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\">cat\nsat\nmat\nat<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The following explains the meaning of the regular expression pattern <code>\\w*at<\/code> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\\w<\/code> matches any word character.<\/li>\n\n\n\n<li><code>*<\/code> is a quantifier that matches zero or more occurrences of the preceding element, which in this case is <code>\\w<\/code>.<\/li>\n\n\n\n<li><code>at<\/code> matches the literal character &#8220;<code>at<\/code>&#8220;.<\/li>\n<\/ul>\n\n\n\n<p>So the pattern <code>\\w*at<\/code> will match any sequence of word characters followed by the letters &#8220;<code>at<\/code>&#8220;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2) Matching the occurrences of the preceding element zero or more times (+)<\/h3>\n\n\n\n<p>The following example uses the quantifier (<code>+<\/code>) with <code>\\d<\/code> to match one or more consecutive digits in a string:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"C# 12 and .NET 8\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d+\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">12<\/span>\n<span class=\"hljs-number\">8<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The pattern <code>\\d+<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\\d<\/code> matches any digit.<\/li>\n\n\n\n<li><code>+<\/code> is a quantifier that matches one or more occurrences of the preceding element, which is \\d in this case.<\/li>\n<\/ul>\n\n\n\n<p>So <code>\\d+<\/code> matches a sequence of digits.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3) Matching the occurrences of the preceding element one or more times (?)<\/h3>\n\n\n\n<p>The following example shows how to use the quantifier (*?) to match both words <code>color<\/code> and <code>colour<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"color or colour\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"colou?r\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\">color\ncolour<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">4) Matching the occurrences of the preceding element exactly&nbsp;n&nbsp;times {n}<\/h3>\n\n\n\n<p>The following example uses the quantifier <code>{n}<\/code> with the <code>\\d<\/code> to match exactly two digits:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"It's 12:30 December 1, 2000\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d{2}\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">12<\/span>\n<span class=\"hljs-number\">30<\/span>\n<span class=\"hljs-number\">20<\/span>\n<span class=\"hljs-number\">00<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this example, the regular expression pattern <code>\\d{2}<\/code> matches exactly two consecutive digits. Therefore, it returns 12, 30, 20, and 00.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5) Match the occurrences of the preceding element at least&nbsp;n&nbsp;times {n, }<\/h3>\n\n\n\n<p>The following example uses the <code>{n,}<\/code> quantifier to match the time in both <code>hh:mm<\/code> and <code>h:mm<\/code> formats:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"06:20 6:30\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d{1,}:\\d{1,}\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">06<\/span>:<span class=\"hljs-number\">20<\/span>\n<span class=\"hljs-number\">6<\/span>:<span class=\"hljs-number\">30<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">6) Match the occurrences of the preceding element from&nbsp;n&nbsp;to&nbsp;m&nbsp;times {n, m}<\/h3>\n\n\n\n<p>The following example uses the <code>{n,m}<\/code> quantifier to match a date in the format <code>m-d-yyyy<\/code> or <code>mm-dd-yyyy<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-keyword\">using<\/span> System.Text.RegularExpressions;\n<span class=\"hljs-keyword\">using<\/span> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> text = <span class=\"hljs-string\">\"12-31-1999 to 1-1-2000\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d{1,2}-\\d{1,2}-\\d{4}\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> matches = Regex.Matches(text, pattern);\n\n<span class=\"hljs-keyword\">foreach<\/span> (<span class=\"hljs-keyword\">var<\/span> match <span class=\"hljs-keyword\">in<\/span> matches)\n{\n    WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/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=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">12<\/span><span class=\"hljs-number\">-31<\/span><span class=\"hljs-number\">-1999<\/span>\n<span class=\"hljs-number\">1<\/span><span class=\"hljs-number\">-1<\/span><span class=\"hljs-number\">-2000<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">C#<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">cs<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use regex quantifiers to match a preceding pattern a specified number of times.<\/li>\n<\/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=\"1911\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/regex-quantifiers\/\"\n\t\t\t\tdata-post-title=\"Regex Quantifiers\"\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=\"1911\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/regex-quantifiers\/\"\n\t\t\t\tdata-post-title=\"Regex Quantifiers\"\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\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn about regex quantifiers that specify the quantity of the preceding element in a regular expression pattern.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1892,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1911","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/comments?post=1911"}],"version-history":[{"count":4,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1911\/revisions"}],"predecessor-version":[{"id":1915,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1911\/revisions\/1915"}],"up":[{"embeddable":true,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1892"}],"wp:attachment":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/media?parent=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}