{"id":43,"date":"2011-03-11T14:17:00","date_gmt":"2011-03-11T20:17:00","guid":{"rendered":"http:\/\/til4code.wordpress.com\/?p=43"},"modified":"2011-03-11T14:17:00","modified_gmt":"2011-03-11T20:17:00","slug":"today-i-learned-11mar2011","status":"publish","type":"post","link":"https:\/\/code.angelmarquez.com\/blog\/2011\/03\/11\/today-i-learned-11mar2011\/","title":{"rendered":"TIL: Some NSIS utility functions"},"content":{"rendered":"<ul>\n<li><span style=\"line-height:19px;\">To trim a string use: <\/span><\/li>\n<p>[sourcecode language=&#8221;perl&#8221;]<br \/>\n${WordReplace} $target &quot; &quot; &quot;&quot; &quot;{}&quot; $output<br \/>\n[\/sourcecode]<\/p>\n<li><span style=\"line-height:19px;\">To get day\/time info use: <\/span><\/li>\n<p>[sourcecode language=&#8221;perl&#8221;]<br \/>\n${GetTime} &quot;&quot; &quot;L&quot; $Day $Month $Year $DayOfWeek $Hour $Minute $Second<br \/>\n[\/sourcecode]<\/p>\n<li><span style=\"line-height:19px;\">To check a string for invalid characters you can use <a href=\"http:\/\/nsis.sourceforge.net\/StrFilter\" target=\"_blank\">${StrFilter}<\/a><\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>To trim a string use: [sourcecode language=&#8221;perl&#8221;] ${WordReplace} $target &quot; &quot; &quot;&quot; &quot;{}&quot; $output [\/sourcecode] To get day\/time info use: [sourcecode language=&#8221;perl&#8221;] ${GetTime} &quot;&quot; &quot;L&quot; $Day $Month $Year $DayOfWeek $Hour $Minute $Second [\/sourcecode] To check a string for invalid characters you can use ${StrFilter}<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[31,19],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-nsis","tag-nsis","tag-til"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":0,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}