{"id":2926,"date":"2009-03-06T14:30:08","date_gmt":"2009-03-06T21:30:08","guid":{"rendered":"https:\/\/redfindevelop.wpengine.com\/blog\/devblog\/?p=109"},"modified":"2020-10-05T13:12:42","modified_gmt":"2020-10-05T20:12:42","slug":"cleaning_whitespace_in_postgres","status":"publish","type":"post","link":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/","title":{"rendered":"Cleaning Whitespace in Postgres"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg\" border=\"5\" alt=\"School Teacher\" hspace=\"10\" width=\"240\" height=\"171\" align=\"right\" \/>As part of our <a title=\"Redfin 5.0\" href=\"https:\/\/redfin.com\/blog\/2009\/02\/redfin_creates_a_marketplace_for_agents.html\">recent release<\/a>, we added every survey submitted about our agents to our <a title=\"Redfin Real Estate Agents\" href=\"https:\/\/redfin.com\/blog\/real-estate-agents\">agent profiles<\/a>. To prep for this, we needed to do a mail merge with each survey response, which we exported from a Postgres database. The problem was, when our users submitted their answers, they used the skills their grade 3 English teacher taught them and wrote in paragraphs. But all the common export formats indicate new records by using line-breaks, so we needed a way to clean the whitespace from these surveys.<\/p>\n<p>As it turns out, Postgres has some <a title=\"Postgres String Functions\" href=\"http:\/\/www.postgresql.org\/docs\/current\/static\/functions-string.html\">very useful regex functions<\/a> that make string operations a breeze. But since no one wants to have to reconstruct the appropriate syntax every time they need to clean whitespace, you can make a Postgres function that wraps the functionality:<\/p>\n<pre>CREATE OR REPLACE FUNCTION clean_whitespace(to_clean text) RETURNS text AS $$\n    BEGIN\n        RETURN regexp_replace(to_clean, E'[ tnr]+', ' ', 'g');\n    END;\n$$ LANGUAGE plpgsql IMMUTABLE;<\/pre>\n<p>This replaces each group of whitespace in the argument with a single space. The <a title=\"Postgres Function Volatility\" href=\"http:\/\/www.postgresql.org\/docs\/8.1\/interactive\/xfunc-volatility.html\">immutable<\/a> flag indicates that the function will have no side-effects, and thus allows it to be used in indices. Also notice that we only want to match occurrences of length at least 1 (by using &#8220;+&#8221; rather than &#8220;*&#8221;), because otherwise you end up with a space between every character!<\/p>\n<p>Thanks to Thomas Kellerer on the <a title=\"Postgres Message Board\" href=\"http:\/\/archives.postgresql.org\/pgsql-sql\/2007-10\/msg00136.php\">postgres message board<\/a> for pointing us in the right direction with regards to the arguments we needed.<\/p>\n<p><span style=\"color: #999999\">(Photo credits: <a href=\"http:\/\/www.flickr.com\/photos\/31910792@N05\/\">jamesdale10<\/a> on Flickr)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of our recent release, we added every survey submitted about our agents to our agent profiles. To prep for this, we needed to do a mail merge with each survey response, which we exported from a Postgres database. The problem was, when our users submitted their answers, they used the skills their grade [&hellip;]<\/p>\n","protected":false},"author":13083,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[57],"tags":[],"dashboard":[],"coauthors":[],"class_list":["post-2926","post","type-post","status-publish","format-standard","hentry","category-company-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.7 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Cleaning Whitespace in Postgres - Redfin Real Estate News<\/title>\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.redfin.com\/news\/cleaning_whitespace_in_postgres\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cleaning Whitespace in Postgres\" \/>\n<meta property=\"og:description\" content=\"As part of our recent release, we added every survey submitted about our agents to our agent profiles. To prep for this, we needed to do a mail merge with each survey response, which we exported from a Postgres database. The problem was, when our users submitted their answers, they used the skills their grade [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/\" \/>\n<meta property=\"og:site_name\" content=\"Redfin Real Estate News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/redfin\" \/>\n<meta property=\"article:published_time\" content=\"2009-03-06T21:30:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-05T20:12:42+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg\" \/>\n<meta name=\"author\" content=\"Arthur Patterson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@redfin\" \/>\n<meta name=\"twitter:site\" content=\"@redfin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arthur Patterson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/\"},\"author\":{\"name\":\"Arthur Patterson\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/135b51b36c7b6f1825f8359fbe4251e4\"},\"headline\":\"Cleaning Whitespace in Postgres\",\"datePublished\":\"2009-03-06T21:30:08+00:00\",\"dateModified\":\"2020-10-05T20:12:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/\"},\"wordCount\":226,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/farm4.static.flickr.com\\\/3264\\\/3131262210_e65ac38a89_m.jpg\",\"articleSection\":[\"Company News\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#respond\"]}],\"copyrightYear\":\"2009\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/\",\"name\":\"Cleaning Whitespace in Postgres - Redfin Real Estate News\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/farm4.static.flickr.com\\\/3264\\\/3131262210_e65ac38a89_m.jpg\",\"datePublished\":\"2009-03-06T21:30:08+00:00\",\"dateModified\":\"2020-10-05T20:12:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#primaryimage\",\"url\":\"http:\\\/\\\/farm4.static.flickr.com\\\/3264\\\/3131262210_e65ac38a89_m.jpg\",\"contentUrl\":\"http:\\\/\\\/farm4.static.flickr.com\\\/3264\\\/3131262210_e65ac38a89_m.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/cleaning_whitespace_in_postgres\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.redfin.com/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cleaning Whitespace in Postgres\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"name\":\"Redfin Real Estate News\",\"description\":\"The latest real estate news and research from technology-powered residential real estate company, Redfin.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.redfin.com/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\",\"name\":\"Redfin\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"width\":1100,\"height\":235,\"caption\":\"Redfin\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/redfin\",\"https:\\\/\\\/x.com\\\/redfin\",\"https:\\\/\\\/www.instagram.com\\\/redfinrealestate\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/redfin\",\"https:\\\/\\\/www.pinterest.com\\\/redfin\\\/\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Redfin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/135b51b36c7b6f1825f8359fbe4251e4\",\"name\":\"Arthur Patterson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=gf3b6a8b9972599c4414cc3eb1b352642\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=g\",\"caption\":\"Arthur Patterson\"},\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/author\\\/arthur-pattersonredfin-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Cleaning Whitespace in Postgres - Redfin Real Estate News","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.redfin.com\/news\/cleaning_whitespace_in_postgres\/","og_locale":"en_US","og_type":"article","og_title":"Cleaning Whitespace in Postgres","og_description":"As part of our recent release, we added every survey submitted about our agents to our agent profiles. To prep for this, we needed to do a mail merge with each survey response, which we exported from a Postgres database. The problem was, when our users submitted their answers, they used the skills their grade [&hellip;]","og_url":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/","og_site_name":"Redfin Real Estate News","article_publisher":"https:\/\/www.facebook.com\/redfin","article_published_time":"2009-03-06T21:30:08+00:00","article_modified_time":"2020-10-05T20:12:42+00:00","og_image":[{"url":"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg","type":"","width":"","height":""}],"author":"Arthur Patterson","twitter_card":"summary_large_image","twitter_creator":"@redfin","twitter_site":"@redfin","twitter_misc":{"Written by":"Arthur Patterson","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#article","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/"},"author":{"name":"Arthur Patterson","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/135b51b36c7b6f1825f8359fbe4251e4"},"headline":"Cleaning Whitespace in Postgres","datePublished":"2009-03-06T21:30:08+00:00","dateModified":"2020-10-05T20:12:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/"},"wordCount":226,"commentCount":0,"publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"image":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#primaryimage"},"thumbnailUrl":"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg","articleSection":["Company News"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#respond"]}],"copyrightYear":"2009","copyrightHolder":{"@id":"https:\/\/www.redfin.com\/news\/#organization"}},{"@type":"WebPage","@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/","url":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/","name":"Cleaning Whitespace in Postgres - Redfin Real Estate News","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#primaryimage"},"image":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#primaryimage"},"thumbnailUrl":"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg","datePublished":"2009-03-06T21:30:08+00:00","dateModified":"2020-10-05T20:12:42+00:00","breadcrumb":{"@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#primaryimage","url":"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg","contentUrl":"http:\/\/farm4.static.flickr.com\/3264\/3131262210_e65ac38a89_m.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.redfin.com\/news\/cleaning_whitespace_in_postgres\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redfin.com\/news\/"},{"@type":"ListItem","position":2,"name":"Cleaning Whitespace in Postgres"}]},{"@type":"WebSite","@id":"https:\/\/www.redfin.com\/news\/#website","url":"https:\/\/www.redfin.com\/news\/","name":"Redfin Real Estate News","description":"The latest real estate news and research from technology-powered residential real estate company, Redfin.","publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redfin.com\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redfin.com\/news\/#organization","name":"Redfin","url":"https:\/\/www.redfin.com\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","width":1100,"height":235,"caption":"Redfin"},"image":{"@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/redfin","https:\/\/x.com\/redfin","https:\/\/www.instagram.com\/redfinrealestate\/","https:\/\/www.linkedin.com\/company\/redfin","https:\/\/www.pinterest.com\/redfin\/","https:\/\/en.wikipedia.org\/wiki\/Redfin"]},{"@type":"Person","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/135b51b36c7b6f1825f8359fbe4251e4","name":"Arthur Patterson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=gf3b6a8b9972599c4414cc3eb1b352642","url":"https:\/\/secure.gravatar.com\/avatar\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb86ba5fdc6e86a612d8228badfd48eb2ba6cfcf93ac9fb1644e3b80311326dc?s=96&d=wp_user_avatar&r=g","caption":"Arthur Patterson"},"url":"https:\/\/www.redfin.com\/news\/author\/arthur-pattersonredfin-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/2926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/users\/13083"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/comments?post=2926"}],"version-history":[{"count":0,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/2926\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/media?parent=2926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/categories?post=2926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/tags?post=2926"},{"taxonomy":"dashboard","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/dashboard?post=2926"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/coauthors?post=2926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}