{"id":20481150,"url":"https://github.com/jaynetics/regexp_property_values","last_synced_at":"2025-07-18T10:33:32.968Z","repository":{"id":56891635,"uuid":"133062920","full_name":"jaynetics/regexp_property_values","owner":"jaynetics","description":"Inspect property values supported by Ruby's regex engine","archived":false,"fork":false,"pushed_at":"2024-05-22T10:38:51.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T22:19:28.634Z","etag":null,"topics":["onigmo","oniguruma","regular-expression","ruby","unicode"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"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/jaynetics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T16:23:50.000Z","updated_at":"2024-05-22T10:38:53.000Z","dependencies_parsed_at":"2023-12-02T02:10:24.848Z","dependency_job_id":"cd44f770-9bcb-4edc-b392-62bc5fc8f5fa","html_url":"https://github.com/jaynetics/regexp_property_values","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.02941176470588236,"last_synced_commit":"3ecdde76f4721f45ecee885b3701df7ddb70bbe6"},"previous_names":["janosch-x/regexp_property_values"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/jaynetics/regexp_property_values","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaynetics%2Fregexp_property_values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaynetics%2Fregexp_property_values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaynetics%2Fregexp_property_values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaynetics%2Fregexp_property_values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaynetics","download_url":"https://codeload.github.com/jaynetics/regexp_property_values/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaynetics%2Fregexp_property_values/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265742710,"owners_count":23820895,"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":["onigmo","oniguruma","regular-expression","ruby","unicode"],"created_at":"2024-11-15T16:06:59.136Z","updated_at":"2025-07-18T10:33:32.942Z","avatar_url":"https://github.com/jaynetics.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RegexpPropertyValues\n\n[![Gem Version](https://badge.fury.io/rb/regexp_property_values.svg)](http://badge.fury.io/rb/regexp_property_values)\n[![Build Status](https://github.com/jaynetics/regexp_property_values/workflows/tests/badge.svg)](https://github.com/jaynetics/regexp_property_values/actions)\n\nThis small library lets you see which property values are supported by the regular expression engine of the Ruby version you are running and directly reads out their codepoint ranges from there.\n\nThat is, it determines all supported values for `\\p{value}` expressions and what they match.\n\n## Usage\n\n##### Browse all property values (supported by any Ruby, ever)\n\n```ruby\nrequire 'regexp_property_values'\n\nPV = RegexpPropertyValues\n\nPV.all # =\u003e [\u003cValue name='Alpha'\u003e, \u003cValue name='Blank'\u003e, ...]\n```\n\n##### Browse property values supported by the Ruby you are running\n\n```ruby\nPV.all_for_current_ruby # =\u003e [\u003cValue name='Alpha'\u003e, \u003cValue name='Blank'\u003e, ...]\n```\n\n##### Inspect property values\n\n```ruby\nPV['alpha'].supported_by_current_ruby? # =\u003e true\nPV['foobar'].supported_by_current_ruby? # =\u003e false\n\nPV['AHex'].matched_characters # =\u003e %w[0 1 2 3 4 5 6 7 8 9 A B C ...]\nPV['AHex'].matched_codepoints # =\u003e [48, 49, 50, ...]\nPV['AHex'].matched_ranges # =\u003e [48..57, 65..70, 97..102]\n# Note: #matched_characters is slow for large properties and you\n# may not want to use it in time-critical code. It also omits surrogates.\n\nPV['foobar'].matched_ranges # =\u003e RegexpPropertyValues::Error\n```\n\nIf [`character_set`](https://github.com/jaynetics/character_set) is installed, you can also do this:\n\n```ruby\nPV['AHex'].character_set # =\u003e #\u003cCharacterSet: {48, 49...} (size: 22)\u003e\n```\n\n##### Utility methods\n\n```ruby\n# get a Hash of aliases for property names\nPV.alias_hash # =\u003e { \u003cValue name='M'\u003e =\u003e \u003cValue name='Mark'\u003e, ... }\n\n# download a list of possible properties for the running Ruby version\n# (only used for .all and .alias_hash, not needed for prop lookup via .[])\nPV.update\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaynetics%2Fregexp_property_values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaynetics%2Fregexp_property_values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaynetics%2Fregexp_property_values/lists"}