{"id":20635771,"url":"https://github.com/orsinium-labs/re","last_synced_at":"2025-04-15T21:25:21.873Z","repository":{"id":39587310,"uuid":"491109363","full_name":"orsinium-labs/re","owner":"orsinium-labs","description":"Elixir library for writing readable regexes in functional style","archived":false,"fork":false,"pushed_at":"2022-05-31T13:08:54.000Z","size":26,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T01:34:12.217Z","etag":null,"topics":["elixir","elixir-lang","erlang","fp","macro","metaprogramming","pcre","re","regex","regexp","regular-expression"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/re/","language":"Elixir","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-11T12:50:52.000Z","updated_at":"2023-12-28T05:40:23.000Z","dependencies_parsed_at":"2022-09-15T09:52:16.949Z","dependency_job_id":null,"html_url":"https://github.com/orsinium-labs/re","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/re/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248939638,"owners_count":21186628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","elixir-lang","erlang","fp","macro","metaprogramming","pcre","re","regex","regexp","regular-expression"],"created_at":"2024-11-16T15:07:22.506Z","updated_at":"2025-04-15T21:25:21.842Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Re\n\nElixir library for writing regular expressions in functional style.\n\nFeatures:\n\n* Readable and human-friendly.\n* Less error-prone.\n* 100% compile-time, no overhead in runtime.\n* But will fallback to runtime if needed (if you use dynamic content like variables).\n* Well documented with lots of examples.\n* Optimized and readable output.\n\n## Installation\n\nThe package can be installed by adding `re` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:re, \"\u003e= 1.0.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\niex\u003e require Re\niex\u003e require Re.Chars\niex\u003e regex =\n...\u003e   Re.sequence([\n...\u003e     Re.one_or_more(Re.any_of([Re.Chars.any_ascii, Re.any_of('.-_')])),\n...\u003e     Re.text(\".example.com\")\n...\u003e   ]) |\u003e Re.compile()\n~r/(?:[\\\\0-\\x7f]|\\.|\\-|_)+\\.example\\.com/\niex\u003e \"hello.example.com\" =~ regex\ntrue\n```\n\n**Documentation**: [hexdocs.pm/re/](https://hexdocs.pm/re/Re.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fre/lists"}