{"action":"created","issue":{"url":"https://api.github.com/repos/Suor/funcy/issues/36","labels_url":"https://api.github.com/repos/Suor/funcy/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Suor/funcy/issues/36/comments","events_url":"https://api.github.com/repos/Suor/funcy/issues/36/events","html_url":"https://github.com/Suor/funcy/issues/36","id":89819362,"number":36,"title":"String replacement","user":{"login":"vm","id":4899429,"avatar_url":"https://avatars.githubusercontent.com/u/4899429?v=3","gravatar_id":"","url":"https://api.github.com/users/vm","html_url":"https://github.com/vm","followers_url":"https://api.github.com/users/vm/followers","following_url":"https://api.github.com/users/vm/following{/other_user}","gists_url":"https://api.github.com/users/vm/gists{/gist_id}","starred_url":"https://api.github.com/users/vm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vm/subscriptions","organizations_url":"https://api.github.com/users/vm/orgs","repos_url":"https://api.github.com/users/vm/repos","events_url":"https://api.github.com/users/vm/events{/privacy}","received_events_url":"https://api.github.com/users/vm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-20T21:20:59Z","updated_at":"2015-06-21T03:33:02Z","closed_at":null,"body":"Hello,\r\n\r\nIs there something in this library to do this:\r\n```.py\r\n'my name is vignesh'.replace('vignesh', 'matt').replace('my', 'your')\r\n```\r\n\r\nI've written for loops, regex and reduces to implement this, but its very repetitive to rewrite each time. What do you recommend?\r\n\r\nIssues with for loops and reduces include:\r\n- Reduces are not recommended by Guido.\r\n- The ordering matters, since they are not replaced at once.\r\n\r\nRegex works, but its not very functional. Although I guess it doesn't matter if the implementation itself is function, just whether the API is in this case, right?"},"comment":{"url":"https://api.github.com/repos/Suor/funcy/issues/comments/113861161","html_url":"https://github.com/Suor/funcy/issues/36#issuecomment-113861161","issue_url":"https://api.github.com/repos/Suor/funcy/issues/36","id":113861161,"user":{"login":"Suor","id":284103,"avatar_url":"https://avatars.githubusercontent.com/u/284103?v=3","gravatar_id":"","url":"https://api.github.com/users/Suor","html_url":"https://github.com/Suor","followers_url":"https://api.github.com/users/Suor/followers","following_url":"https://api.github.com/users/Suor/following{/other_user}","gists_url":"https://api.github.com/users/Suor/gists{/gist_id}","starred_url":"https://api.github.com/users/Suor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suor/subscriptions","organizations_url":"https://api.github.com/users/Suor/orgs","repos_url":"https://api.github.com/users/Suor/repos","events_url":"https://api.github.com/users/Suor/events{/privacy}","received_events_url":"https://api.github.com/users/Suor/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T03:33:02Z","updated_at":"2015-06-21T03:33:02Z","body":"Won't str.format work for you? If not just make a function and use it.\nFuncy doesn't have special purpose function for it.\n"}}