{"id":1894,"date":"2023-05-31T17:04:22","date_gmt":"2023-05-31T10:04:22","guid":{"rendered":"https:\/\/csharptutorial.net\/?page_id=1894"},"modified":"2023-05-31T20:19:25","modified_gmt":"2023-05-31T13:19:25","slug":"csharp-regex","status":"publish","type":"page","link":"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/csharp-regex\/","title":{"rendered":"C# Regex"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to use the C# <code>Regex<\/code> class to work with regular expressions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to the C# Regex class<\/h2>\n\n\n\n<p>The following simple program uses the <code>Contains()<\/code> method of a <code>String<\/code> object to check whether an input string contains the number 2:<\/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> <span class=\"hljs-keyword\">static<\/span> System.Console;\n\n\n<span class=\"hljs-keyword\">var<\/span> message = <span class=\"hljs-string\">\"I have 2 apples\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> result = message.Contains(<span class=\"hljs-string\">\"2\"<\/span>);\n\nWriteLine(result);<\/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\">True<\/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>If the number that you want to check is not 2 but may vary from 0 to 9, then you need to modify the program like this:<\/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\">var<\/span> message = <span class=\"hljs-string\">\"I have 5 apples\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> result = <span class=\"hljs-literal\">false<\/span>;\n<span class=\"hljs-keyword\">for<\/span> (<span class=\"hljs-keyword\">var<\/span> i = <span class=\"hljs-number\">0<\/span>; i &lt;= <span class=\"hljs-number\">9<\/span>; i++)\n{\n    <span class=\"hljs-keyword\">if<\/span> (message.Contains(i.ToString()))\n    {  \n        result = <span class=\"hljs-literal\">true<\/span>;\n        <span class=\"hljs-keyword\">break<\/span>;\n    }\n}\n\nWriteLine(result);<\/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>The program sets the <code>result<\/code> flag to <code>false<\/code> and checks if an input string contains a single digit from 0 to 9 using a for loop. If it does, the program sets the <code>result<\/code> to <code>true<\/code> and <a href=\"https:\/\/csharptutorial.net\/csharp-tutorial\/csharp-break\/\">breaks<\/a> the loop. Finally, the program writes the <code>result<\/code> to the console.<\/p>\n\n\n\n<p>The program works as expected but it is quite verbose. To check if a string contains a single digit, you can use a regular expression.<\/p>\n\n\n\n<p>A regular expression describes a pattern for matching. For example, to match a single digit, you use the following pattern:<\/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\">\\d<\/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>To use this regular expression pattern in C# for matching, you will need to utilize the <code>Regex<\/code> class.<\/p>\n\n\n\n<p>First, import the <code>System.Text.RegularExpressions<\/code> namespace in the program:<\/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;<\/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>Second, create a new <code>Regex<\/code> object and pass the regular expression pattern to the <code>Regex<\/code>&#8216;s constructor:<\/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\"><span class=\"hljs-keyword\">var<\/span> regex = <span class=\"hljs-keyword\">new<\/span> Regex(<span class=\"hljs-string\">@\"\\d\"<\/span>);<\/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<p>Second, call the <code>IsMatch()<\/code> method that returns <code>true<\/code> if an input string matches the regular expression pattern:<\/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\">var<\/span> result = regex.IsMatch(message);<\/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>If the input string message doesn&#8217;t match the pattern, the <code>IsMatch()<\/code> method returns <code>false<\/code>.<\/p>\n\n\n\n<p>Put it all together:<\/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-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> message = <span class=\"hljs-string\">\"I have 5 apples\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> regex = <span class=\"hljs-keyword\">new<\/span> Regex(<span class=\"hljs-string\">@\"\\d\"<\/span>);\n\n<span class=\"hljs-keyword\">var<\/span> result = regex.IsMatch(message);\n\nWriteLine(result);<\/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>Output:<\/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\">True<\/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>In this example, by using regular expressions to match, the program becomes less verbose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using C# Regex.IsMatch() static method<\/h2>\n\n\n\n<p>Besides creating a new <code>Regex<\/code> object and calling the <code>IsMatch()<\/code> method, you can use the <code>IsMatch()<\/code> static method of the <code>Regex<\/code> class. For example:<\/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-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> message = <span class=\"hljs-string\">\"I have 5 apples\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> result = Regex.IsMatch(message, pattern);\n\nWriteLine(result);<\/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<p>Output:<\/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\">True<\/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>The <code>IsMatch()<\/code> static method accepts two arguments, the first one is an input string and the second one is a pattern to match.<\/p>\n\n\n\n<p>If you have a one-time matching task, the <code>IsMatch()<\/code> static method is more concise and convenient. However, when you need to reuse the same pattern for multiple matches, using the <code>IsMatch()<\/code> method of a <code>Regex<\/code> object offers better performance.<\/p>\n\n\n\n<p>The reason is that when you call the <code>IsMatch()<\/code> method of a <code>Regex<\/code> object, it compiles the pattern into an internal representation that is optimized the pattern for matching. Once compiled, the <code>Regex<\/code> object caches the result internally so that the next match will not need to recompile the pattern again, resulting in faster matching.<\/p>\n\n\n\n<p>On the other hand, the <code>IsMatch()<\/code> static method doesn&#8217;t provide the same optimizations. Instead, it compiles the regular expression pattern internally <strong>for each<\/strong> matching operation. This causes extra overhead and decreases performance if you use the same pattern for matching multiple times.<\/p>\n\n\n\n<p>Notice that this logic is also applied to other methods and static methods of the <code>Regex<\/code> class like <code>Match()<\/code> and <code>Matches()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C# Regex Match method<\/h2>\n\n\n\n<p>The <code>Match()<\/code> method matches a pattern and returns the first match as a single <code>Match<\/code> object. <\/p>\n\n\n\n<p>For example, the following program uses the <code>Match()<\/code> method to output the first number found in a string:<\/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-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> message = <span class=\"hljs-string\">\"I have 3 apples and 5 oranges\"<\/span>;\n<span class=\"hljs-keyword\">var<\/span> pattern = <span class=\"hljs-string\">@\"\\d\"<\/span>;\n\n<span class=\"hljs-keyword\">var<\/span> match = Regex.Match(message, pattern);\nWriteLine(match);<\/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<p>Output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">3<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><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\">C# Regex Matches method<\/h2>\n\n\n\n<p>Unlike the <code>Match()<\/code> method, the <code>Matches()<\/code> method returns a collection of matches found in a string. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" 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> message = <span class=\"hljs-string\">\"I have 3 apples and 5 oranges\"<\/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(message, 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    Console.WriteLine(match);\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><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-15\" data-shcb-language-name=\"C#\" data-shcb-language-slug=\"cs\"><span><code class=\"hljs language-cs\"><span class=\"hljs-number\">3<\/span>\n<span class=\"hljs-number\">5<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-15\"><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 tutorial, you learned a simple pattern that matches a single digit. In the next tutorials, you will learn how to construct more flexible patterns.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <code>Regex.IsMatch()<\/code> method to check if a regular expression pattern finds a match in a string.<\/li>\n\n\n\n<li>Use <code>Regex.Match()<\/code> method to return the first match of a regular expression pattern in a string.<\/li>\n\n\n\n<li>Use <code>Regex.Matches()<\/code> method to return all matches of a regular expression pattern in a string.<\/li>\n\n\n\n<li>Use methods like <code>IsMatch()<\/code>, <code>Match()<\/code>, and <code>Matches()<\/code> of the <code>Regex<\/code> object if you match a single pattern multiple times to gain higher performance. Otherwise uses the corresponding static methods of the <code>Regex<\/code> class to make the code more concise.<\/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=\"1894\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/csharp-regex\/\"\n\t\t\t\tdata-post-title=\"C# Regex\"\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=\"1894\"\n\t\t\t\tdata-post-url=\"https:\/\/www.csharptutorial.net\/csharp-regular-expression\/csharp-regex\/\"\n\t\t\t\tdata-post-title=\"C# Regex\"\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>Summary: in this tutorial, you will learn how to use the C# Regex class to work with regular expressions. Introduction to the C# Regex class The following simple program uses the Contains() method of a String object to check whether an input string contains the number 2: Output: If the number that you want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1892,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1894","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1894","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=1894"}],"version-history":[{"count":3,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1894\/revisions"}],"predecessor-version":[{"id":1899,"href":"https:\/\/www.csharptutorial.net\/wp-json\/wp\/v2\/pages\/1894\/revisions\/1899"}],"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=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}