{"action":"opened","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/5293","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5293/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5293/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5293/events","html_url":"https://github.com/elixir-lang/elixir/issues/5293","id":181485077,"number":5293,"title":"Adding unicode example to Regex docs","user":{"login":"jbranchaud","id":694063,"avatar_url":"https://avatars.githubusercontent.com/u/694063?v=3","gravatar_id":"","url":"https://api.github.com/users/jbranchaud","html_url":"https://github.com/jbranchaud","followers_url":"https://api.github.com/users/jbranchaud/followers","following_url":"https://api.github.com/users/jbranchaud/following{/other_user}","gists_url":"https://api.github.com/users/jbranchaud/gists{/gist_id}","starred_url":"https://api.github.com/users/jbranchaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbranchaud/subscriptions","organizations_url":"https://api.github.com/users/jbranchaud/orgs","repos_url":"https://api.github.com/users/jbranchaud/repos","events_url":"https://api.github.com/users/jbranchaud/events{/privacy}","received_events_url":"https://api.github.com/users/jbranchaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T18:03:28Z","updated_at":"2016-10-06T18:03:28Z","closed_at":null,"body":"The docs for Regex mention, toward the beginning, that the `u` modifier can be used for Unicode specific patterns. There are no examples of using it throughout the rest of the page though. I suggest adding an example to one of the function examples, e.g. for `scan/2`:\r\n\r\n```elixir\r\niex> Regex.scan(~r/\\p{Sc}/u, \"$, £, and €\")\r\n[[\"$\"], [\"£\"], [\"€\"]]\r\n```\r\n\r\nThis example has the added benefit of also showing off its use with unicode character categories.\r\n\r\nIf this seems like an agreeable approach, I'll go ahead and create a PR for it."}}
{"actor":{"display_login":"jbranchaud"}}