{"id":6333,"date":"2012-08-24T17:00:42","date_gmt":"2012-08-24T11:30:42","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=6333"},"modified":"2017-09-22T15:32:00","modified_gmt":"2017-09-22T10:02:00","slug":"replaceall-jquery-regex","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/","title":{"rendered":"Replace All using JQuery and Regex"},"content":{"rendered":"<p>I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically<\/p>\n<p>The use of replace is made like<\/p>\n<p>[js]<br \/>\nvar a = &quot;Some text here text&quot;;<br \/>\na=a.replace(\/text\/g,&quot;one&quot;)<br \/>\n[\/js]<\/p>\n<p>This will replace all &#8220;text&#8221; with &#8220;one&#8221;<\/p>\n<p>Now imagine how good it would be if we could replace the part of html like &#8220;##title##&#8221; with a title&#8217;s value in a JSON.<br \/>\nWe would be able to replace\/load an entire html code dynamically by merely sending a JSON (or a list of JSON) that would replace the content of HTML in javascript.<\/p>\n<p>Let us consider that we have a html code which is somethinng like:<\/p>\n<p>[html]<br \/>\n&lt;a title=&#8217;##title##&#8217; onclick=&#8217;showRecipeDetail(\\&quot;##friendlyUrl##\\&quot;, this)&#8217;&gt; &lt;img src=\\&quot;##imageUrl##\\&quot; height=&#8217;75&#8217; width=&#8217;75&#8217; \/&gt;&lt;div class=&#8217;recipeTitle&#8217;&gt;##title##&lt;\/div&gt;&lt;\/a&gt;<br \/>\n[\/html]<\/p>\n<p>And we want to load this html with JSON content:<\/p>\n<p>[js]<br \/>\n{{title:&quot;abc&quot;, friendlyUrl:&quot;xyz&quot;, imageUrl:&quot;123&quot;},{title:&quot;pqr&quot;, friendlyUrl:&quot;stu&quot;, imageUrl:&quot;456&quot;}}<br \/>\n[\/js]<\/p>\n<p>What we will do is that we will identified the values to be replaced by using regex and then replaced all of them using replace function. For eg.:<\/p>\n<p>[js]<br \/>\nvar data= [{title:&quot;abc&quot;, friendlyUrl:&quot;xyz&quot;, imageUrl:&quot;123&quot;},{title:&quot;pqr&quot;, friendlyUrl:&quot;stu&quot;, imageUrl:&quot;456&quot;}]<br \/>\nvar HTML_Template = &quot;&lt;a title=&#8217;##title##&#8217; onclick=&#8217;showRecipeDetail(\\&quot;##friendlyUrl##\\&quot;, this)&#8217;&gt; &lt;img src=\\&quot;##imageUrl##\\&quot; height=&#8217;75&#8217; width=&#8217;75&#8217; \/&gt;&lt;div class=&#8217;recipeTitle&#8217;&gt;##title##&lt;\/div&gt;&lt;\/a&gt;&quot;;<br \/>\njQuery(data).each(function(index, recipe) {<br \/>\n\t\t\tvar html = HTML_Template;<br \/>\n\t\t\tjQuery.each(recipe, function(key, value){<br \/>\n\t\t\t\tvar regExp = new RegExp(&quot;##&quot; + key + &quot;##&quot;, &#8216;g&#8217;);<br \/>\n\t\t\t\thtml = html.replace(regExp, value)<br \/>\n\t\t\t});<br \/>\n        });<br \/>\n[\/js]<\/p>\n<p>And hence we will have a our html replaced by merely few line of javascript code and a list of JSON (which we might be getting from ajax responce).<\/p>\n<p>Hope this blog was helpful to you.. \ud83d\ude42<\/p>\n<p>Thanks and Regard,<br \/>\nGaurav Sharma<br \/>\n(gauravs@intelligrape.com)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &#8220;text&#8221; with &#8220;one&#8221; Now imagine how [&hellip;]<\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":56,"footnotes":""},"categories":[1],"tags":[4842,27,431,875,876],"class_list":["post-6333","post","type-post","status-publish","format-standard","hentry","category-technology","tag-html","tag-jquery","tag-regex","tag-regular-expression","tag-replace-all"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &quot;text&quot; with &quot;one&quot; Now imagine how\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Gaurav Sharma\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Replace All using JQuery and Regex | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &quot;text&quot; with &quot;one&quot; Now imagine how\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Replace All using JQuery and Regex | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &quot;text&quot; with &quot;one&quot; Now imagine how\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#article\",\"name\":\"Replace All using JQuery and Regex | TO THE NEW Blog\",\"headline\":\"Replace All using JQuery and Regex\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gaurav-sharma\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-08-24T17:00:42+05:30\",\"dateModified\":\"2017-09-22T15:32:00+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#webpage\"},\"articleSection\":\"Technology, HTML\\\/UI\\\/CSS, jquery, regex, Regular Expression, Replace All\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#listItem\",\"name\":\"Replace All using JQuery and Regex\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#listItem\",\"position\":3,\"name\":\"Replace All using JQuery and Regex\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gaurav-sharma\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gaurav-sharma\\\/\",\"name\":\"Gaurav Sharma\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/a33fa680-a1a3-4d80-be97-6aaf7ad88e4a_364-Gaurav-Sharma-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Gaurav Sharma\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/\",\"name\":\"Replace All using JQuery and Regex | TO THE NEW Blog\",\"description\":\"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\\\/loading data in html dynamically The use of replace is made like [js] var a = \\\"Some text here text\\\"; a=a.replace(\\\/text\\\/g,\\\"one\\\") [\\\/js] This will replace all \\\"text\\\" with \\\"one\\\" Now imagine how\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/replaceall-jquery-regex\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gaurav-sharma\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/gaurav-sharma\\\/#author\"},\"datePublished\":\"2012-08-24T17:00:42+05:30\",\"dateModified\":\"2017-09-22T15:32:00+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Replace All using JQuery and Regex | TO THE NEW Blog","description":"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = \"Some text here text\"; a=a.replace(\/text\/g,\"one\") [\/js] This will replace all \"text\" with \"one\" Now imagine how","canonical_url":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#article","name":"Replace All using JQuery and Regex | TO THE NEW Blog","headline":"Replace All using JQuery and Regex","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gaurav-sharma\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2012-08-24T17:00:42+05:30","dateModified":"2017-09-22T15:32:00+05:30","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#webpage"},"articleSection":"Technology, HTML\/UI\/CSS, jquery, regex, Regular Expression, Replace All"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#listItem","name":"Replace All using JQuery and Regex"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#listItem","position":3,"name":"Replace All using JQuery and Regex","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/gaurav-sharma\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/gaurav-sharma\/","name":"Gaurav Sharma","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/a33fa680-a1a3-4d80-be97-6aaf7ad88e4a_364-Gaurav-Sharma-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Gaurav Sharma"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/","name":"Replace All using JQuery and Regex | TO THE NEW Blog","description":"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = \"Some text here text\"; a=a.replace(\/text\/g,\"one\") [\/js] This will replace all \"text\" with \"one\" Now imagine how","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gaurav-sharma\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/gaurav-sharma\/#author"},"datePublished":"2012-08-24T17:00:42+05:30","dateModified":"2017-09-22T15:32:00+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Replace All using JQuery and Regex | TO THE NEW Blog","og:description":"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &quot;text&quot; with &quot;one&quot; Now imagine how","og:url":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Replace All using JQuery and Regex | TO THE NEW Blog","twitter:description":"I recently found out that use of Regex with jQuery and replace function can turn out to be a very powerful tool for replacing\/loading data in html dynamically The use of replace is made like [js] var a = &quot;Some text here text&quot;; a=a.replace(\/text\/g,&quot;one&quot;) [\/js] This will replace all &quot;text&quot; with &quot;one&quot; Now imagine how","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"6333","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 14:05:27","updated":"2024-02-29 08:47:38","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tReplace All using JQuery and Regex\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Replace All using JQuery and Regex","link":"https:\/\/www.tothenew.com\/blog\/replaceall-jquery-regex\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/6333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=6333"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/6333\/revisions"}],"predecessor-version":[{"id":51922,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/6333\/revisions\/51922"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=6333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=6333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=6333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}