{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/comments/33407285","id":33407285,"diff_hunk":"@@ -134,20 +139,19 @@ $(D_S Regular Expressions,\n     )\n     ---\n     auto text = readText(...);\n-    auto replaced = replace(text,\n-        regex(r\"([0-9]{1,2})/([0-9]{1,2})/([0-9]{4})\",\"g\"), \"$(DOLLAR)3-$(DOLLAR)1-$(DOLLAR)2\");\n+    auto replaced = replaceAll(text, r\"([0-9]{1,2})/([0-9]{1,2})/([0-9]{4})\".regex, \"$3-$1-$2\");\n     ---\n-    $(P The \"all dates\" part comes from the fact that regex has global option set, omit it to replace only the first occurrence.\n-    As seen the replacement is controlled by format string not unlike one in C's famous printf.\n-    The &#36;1, &#36;2, &#36;3 substituted with content of sub-expresions.\n+    $(P The $(D \"pattern\".regex) is just another notation of writing $(D regex(\"pattern\")) called UFCS that some","path":"regular-expression.dd","position":208,"original_position":208,"commit_id":"d38f5d62e6ac4139800b7b2c3da12b8682cef8a8","original_commit_id":"d38f5d62e6ac4139800b7b2c3da12b8682cef8a8","user":{"login":"Hackerpilot","id":1657783,"avatar_url":"https://avatars.githubusercontent.com/u/1657783?v=3","gravatar_id":"","url":"https://api.github.com/users/Hackerpilot","html_url":"https://github.com/Hackerpilot","followers_url":"https://api.github.com/users/Hackerpilot/followers","following_url":"https://api.github.com/users/Hackerpilot/following{/other_user}","gists_url":"https://api.github.com/users/Hackerpilot/gists{/gist_id}","starred_url":"https://api.github.com/users/Hackerpilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hackerpilot/subscriptions","organizations_url":"https://api.github.com/users/Hackerpilot/orgs","repos_url":"https://api.github.com/users/Hackerpilot/repos","events_url":"https://api.github.com/users/Hackerpilot/events{/privacy}","received_events_url":"https://api.github.com/users/Hackerpilot/received_events","type":"User","site_admin":false},"body":"UFCS is now in the glossary. It's not too important, but you can link to the definition from here.","created_at":"2015-06-27T00:56:17Z","updated_at":"2015-06-27T00:56:17Z","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/1034#discussion_r33407285","pull_request_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/comments/33407285"},"html":{"href":"https://github.com/D-Programming-Language/dlang.org/pull/1034#discussion_r33407285"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034","id":38643164,"html_url":"https://github.com/D-Programming-Language/dlang.org/pull/1034","diff_url":"https://github.com/D-Programming-Language/dlang.org/pull/1034.diff","patch_url":"https://github.com/D-Programming-Language/dlang.org/pull/1034.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1034","number":1034,"state":"open","locked":false,"title":"Update regex article","user":{"login":"DmitryOlshansky","id":281770,"avatar_url":"https://avatars.githubusercontent.com/u/281770?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryOlshansky","html_url":"https://github.com/DmitryOlshansky","followers_url":"https://api.github.com/users/DmitryOlshansky/followers","following_url":"https://api.github.com/users/DmitryOlshansky/following{/other_user}","gists_url":"https://api.github.com/users/DmitryOlshansky/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryOlshansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryOlshansky/subscriptions","organizations_url":"https://api.github.com/users/DmitryOlshansky/orgs","repos_url":"https://api.github.com/users/DmitryOlshansky/repos","events_url":"https://api.github.com/users/DmitryOlshansky/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryOlshansky/received_events","type":"User","site_admin":false},"body":"It's been long over due. Time to:\r\n- remove usage of old API with global flags\r\n- adjust wording\r\n- stop warning about CT version being unstable\r\n- link to benchmarks\r\n\r\nBenchmarks repo is somewhat WIP but has some good stuff to run and is going to improve from now on.\r\n\r\n","created_at":"2015-06-26T12:11:17Z","updated_at":"2015-06-27T00:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2891c1e3ec6ca030d437ecded5ceeaebe10f86c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1034/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/statuses/d38f5d62e6ac4139800b7b2c3da12b8682cef8a8","head":{"label":"DmitryOlshansky:master","ref":"master","sha":"d38f5d62e6ac4139800b7b2c3da12b8682cef8a8","user":{"login":"DmitryOlshansky","id":281770,"avatar_url":"https://avatars.githubusercontent.com/u/281770?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryOlshansky","html_url":"https://github.com/DmitryOlshansky","followers_url":"https://api.github.com/users/DmitryOlshansky/followers","following_url":"https://api.github.com/users/DmitryOlshansky/following{/other_user}","gists_url":"https://api.github.com/users/DmitryOlshansky/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryOlshansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryOlshansky/subscriptions","organizations_url":"https://api.github.com/users/DmitryOlshansky/orgs","repos_url":"https://api.github.com/users/DmitryOlshansky/repos","events_url":"https://api.github.com/users/DmitryOlshansky/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryOlshansky/received_events","type":"User","site_admin":false},"repo":{"id":3604903,"name":"d-programming-language.org","full_name":"DmitryOlshansky/d-programming-language.org","owner":{"login":"DmitryOlshansky","id":281770,"avatar_url":"https://avatars.githubusercontent.com/u/281770?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryOlshansky","html_url":"https://github.com/DmitryOlshansky","followers_url":"https://api.github.com/users/DmitryOlshansky/followers","following_url":"https://api.github.com/users/DmitryOlshansky/following{/other_user}","gists_url":"https://api.github.com/users/DmitryOlshansky/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryOlshansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryOlshansky/subscriptions","organizations_url":"https://api.github.com/users/DmitryOlshansky/orgs","repos_url":"https://api.github.com/users/DmitryOlshansky/repos","events_url":"https://api.github.com/users/DmitryOlshansky/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryOlshansky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DmitryOlshansky/d-programming-language.org","description":"Pages for the d-programming-language.org web site","fork":true,"url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org","forks_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/forks","keys_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/teams","hooks_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/hooks","issue_events_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/issues/events{/number}","events_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/events","assignees_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/assignees{/user}","branches_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/branches{/branch}","tags_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/tags","blobs_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/languages","stargazers_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/stargazers","contributors_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/contributors","subscribers_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/subscribers","subscription_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/subscription","commits_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/contents/{+path}","compare_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/merges","archive_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/downloads","issues_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/issues{/number}","pulls_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/labels{/name}","releases_url":"https://api.github.com/repos/DmitryOlshansky/d-programming-language.org/releases{/id}","created_at":"2012-03-02T18:30:38Z","updated_at":"2015-06-26T12:01:46Z","pushed_at":"2015-06-26T15:38:08Z","git_url":"git://github.com/DmitryOlshansky/d-programming-language.org.git","ssh_url":"git@github.com:DmitryOlshansky/d-programming-language.org.git","clone_url":"https://github.com/DmitryOlshansky/d-programming-language.org.git","svn_url":"https://github.com/DmitryOlshansky/d-programming-language.org","homepage":"d-programming-language.org","size":5486,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"d7e1cfb52583a75e3f953f93a41900dfe53b58f5","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257080,"name":"dlang.org","full_name":"D-Programming-Language/dlang.org","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/dlang.org","description":"Pages for the dlang.org website, home of the D Programming Language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/dlang.org","forks_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/releases{/id}","created_at":"2011-01-15T06:58:12Z","updated_at":"2015-06-26T01:37:10Z","pushed_at":"2015-06-26T23:13:27Z","git_url":"git://github.com/D-Programming-Language/dlang.org.git","ssh_url":"git@github.com:D-Programming-Language/dlang.org.git","clone_url":"https://github.com/D-Programming-Language/dlang.org.git","svn_url":"https://github.com/D-Programming-Language/dlang.org","homepage":"dlang.org","size":19483,"stargazers_count":167,"watchers_count":167,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":210,"mirror_url":null,"open_issues_count":23,"forks":210,"open_issues":23,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034"},"html":{"href":"https://github.com/D-Programming-Language/dlang.org/pull/1034"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1034"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/1034/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/1034/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/dlang.org/statuses/d38f5d62e6ac4139800b7b2c3da12b8682cef8a8"}}}}