{"action":"created","issue":{"url":"https://api.github.com/repos/sampsyo/beets/issues/1452","labels_url":"https://api.github.com/repos/sampsyo/beets/issues/1452/labels{/name}","comments_url":"https://api.github.com/repos/sampsyo/beets/issues/1452/comments","events_url":"https://api.github.com/repos/sampsyo/beets/issues/1452/events","html_url":"https://github.com/sampsyo/beets/pull/1452","id":74558392,"number":1452,"title":"Rewrite Plugin: Back-referencing a matched substring","user":{"login":"m-urban","id":3841403,"avatar_url":"https://avatars.githubusercontent.com/u/3841403?v=3","gravatar_id":"","url":"https://api.github.com/users/m-urban","html_url":"https://github.com/m-urban","followers_url":"https://api.github.com/users/m-urban/followers","following_url":"https://api.github.com/users/m-urban/following{/other_user}","gists_url":"https://api.github.com/users/m-urban/gists{/gist_id}","starred_url":"https://api.github.com/users/m-urban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-urban/subscriptions","organizations_url":"https://api.github.com/users/m-urban/orgs","repos_url":"https://api.github.com/users/m-urban/repos","events_url":"https://api.github.com/users/m-urban/events{/privacy}","received_events_url":"https://api.github.com/users/m-urban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-09T02:02:02Z","updated_at":"2015-05-10T12:19:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sampsyo/beets/pulls/1452","html_url":"https://github.com/sampsyo/beets/pull/1452","diff_url":"https://github.com/sampsyo/beets/pull/1452.diff","patch_url":"https://github.com/sampsyo/beets/pull/1452.patch"},"body":"Hi there,\r\n\r\nThe rewrite plugin is currently able to only replace patterns with static strings. This PR makes it possible to refer a matching sub-string from the pattern and insert it into the replacement pattern.\r\n\r\nFor example:\r\n```\r\nrewrite:\r\n    title (.*)\\(([0-9]{4})\\): '\\1[\\2]'\r\n```\r\ntransforms Stevie Nicks' title ```Rhiannon (2005)``` to ```Rhiannon [2005]```."},"comment":{"url":"https://api.github.com/repos/sampsyo/beets/issues/comments/100632972","html_url":"https://github.com/sampsyo/beets/pull/1452#issuecomment-100632972","issue_url":"https://api.github.com/repos/sampsyo/beets/issues/1452","id":100632972,"user":{"login":"m-urban","id":3841403,"avatar_url":"https://avatars.githubusercontent.com/u/3841403?v=3","gravatar_id":"","url":"https://api.github.com/users/m-urban","html_url":"https://github.com/m-urban","followers_url":"https://api.github.com/users/m-urban/followers","following_url":"https://api.github.com/users/m-urban/following{/other_user}","gists_url":"https://api.github.com/users/m-urban/gists{/gist_id}","starred_url":"https://api.github.com/users/m-urban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-urban/subscriptions","organizations_url":"https://api.github.com/users/m-urban/orgs","repos_url":"https://api.github.com/users/m-urban/repos","events_url":"https://api.github.com/users/m-urban/events{/privacy}","received_events_url":"https://api.github.com/users/m-urban/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T12:19:04Z","updated_at":"2015-05-10T12:19:04Z","body":"Sure thing - thanks for pulling off this great project!\r\nI expanded the respective changelog and documentation sections, so I think this is ready for shipping."}}