{"id":6223,"date":"2012-09-29T20:44:49","date_gmt":"2012-09-30T01:44:49","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6223"},"modified":"2012-09-29T20:44:51","modified_gmt":"2012-09-30T01:44:51","slug":"nested-replacements","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/29\/nested-replacements\/","title":{"rendered":"Nested Replacements"},"content":{"rendered":"<p><a href=\"http:\/\/blog.macromates.com\/2012\/nested-replacements\/\">Allan Odgaard<\/a>:<\/p>\n<blockquote cite=\"http:\/\/blog.macromates.com\/2012\/nested-replacements\/\"><p>The problem is that the capture (<code>$1<\/code>) should be indented. Fortunately TextMate offers you its powerful <a href=\"http:\/\/blog.macromates.com\/2011\/format-strings\/\">format string syntax<\/a> in the replacement field, which means we can perform further replacements on the capture.<\/p><\/blockquote>\n<p>Pretty cool, and I like the idea of previewing replacements.<\/p>","protected":false},"excerpt":{"rendered":"<p>Allan Odgaard: The problem is that the capture ($1) should be indented. Fortunately TextMate offers you its powerful format string syntax in the replacement field, which means we can perform further replacements on the capture. Pretty cool, and I like the idea of previewing replacements.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[30,32,68,23],"class_list":["post-6223","post","type-post","status-publish","format-standard","hentry","category-technology","tag-mac","tag-macapp","tag-texteditor","tag-textmate"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6223"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6223\/revisions"}],"predecessor-version":[{"id":6225,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6223\/revisions\/6225"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}