{"action":"created","issue":{"url":"https://api.github.com/repos/marianobarrios/dregex/issues/3","labels_url":"https://api.github.com/repos/marianobarrios/dregex/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/marianobarrios/dregex/issues/3/comments","events_url":"https://api.github.com/repos/marianobarrios/dregex/issues/3/events","html_url":"https://github.com/marianobarrios/dregex/issues/3","id":130074082,"number":3,"title":"give CompiledRegex a toString method?","user":{"login":"averagehat","id":5606168,"avatar_url":"https://avatars.githubusercontent.com/u/5606168?v=3","gravatar_id":"","url":"https://api.github.com/users/averagehat","html_url":"https://github.com/averagehat","followers_url":"https://api.github.com/users/averagehat/followers","following_url":"https://api.github.com/users/averagehat/following{/other_user}","gists_url":"https://api.github.com/users/averagehat/gists{/gist_id}","starred_url":"https://api.github.com/users/averagehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averagehat/subscriptions","organizations_url":"https://api.github.com/users/averagehat/orgs","repos_url":"https://api.github.com/users/averagehat/repos","events_url":"https://api.github.com/users/averagehat/events{/privacy}","received_events_url":"https://api.github.com/users/averagehat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-31T04:14:23Z","updated_at":"2016-01-31T15:28:39Z","closed_at":null,"body":"The build in scala regex has a nice toString method, e.g.:\r\n```scala\r\nscala> \"foo.*\\\\.bar\".r.toString\r\nres4: String = foo.*\\.bar\r\n```\r\n\r\nIt would be convenient to have CompiledRegex report the same thing. This would require CompiledRegex to hold onto its initial representation but I don't think that's a bad thing. \r\n\r\nRight now I am having to either hold on to the original string as well or repeatedly compile the regex when I need it because I need the string representation as well.\r\n"},"comment":{"url":"https://api.github.com/repos/marianobarrios/dregex/issues/comments/177523594","html_url":"https://github.com/marianobarrios/dregex/issues/3#issuecomment-177523594","issue_url":"https://api.github.com/repos/marianobarrios/dregex/issues/3","id":177523594,"user":{"login":"marianobarrios","id":424589,"avatar_url":"https://avatars.githubusercontent.com/u/424589?v=3","gravatar_id":"","url":"https://api.github.com/users/marianobarrios","html_url":"https://github.com/marianobarrios","followers_url":"https://api.github.com/users/marianobarrios/followers","following_url":"https://api.github.com/users/marianobarrios/following{/other_user}","gists_url":"https://api.github.com/users/marianobarrios/gists{/gist_id}","starred_url":"https://api.github.com/users/marianobarrios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianobarrios/subscriptions","organizations_url":"https://api.github.com/users/marianobarrios/orgs","repos_url":"https://api.github.com/users/marianobarrios/repos","events_url":"https://api.github.com/users/marianobarrios/events{/privacy}","received_events_url":"https://api.github.com/users/marianobarrios/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T15:28:39Z","updated_at":"2016-01-31T15:28:39Z","body":"Yes, totally.\r\nI could add it myself, when I have some time. \r\nOf course, I'd accept a pull request, if you prefer."}}