{"id":19711050,"url":"https://github.com/jenorish/match_with","last_synced_at":"2026-06-09T13:31:11.826Z","repository":{"id":21566091,"uuid":"24885900","full_name":"jenorish/match_with","owner":"jenorish","description":"Matching condition with human readable regular expression in ruby","archived":false,"fork":false,"pushed_at":"2018-03-28T12:24:26.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-21T01:53:21.511Z","etag":null,"topics":["readable-regex","regex","ruby","string"],"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/jenorish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-07T10:27:50.000Z","updated_at":"2025-02-12T18:15:43.000Z","dependencies_parsed_at":"2022-07-23T09:46:59.766Z","dependency_job_id":null,"html_url":"https://github.com/jenorish/match_with","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenorish/match_with","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Fmatch_with","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Fmatch_with/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Fmatch_with/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Fmatch_with/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenorish","download_url":"https://codeload.github.com/jenorish/match_with/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Fmatch_with/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["readable-regex","regex","ruby","string"],"created_at":"2024-11-11T22:09:39.029Z","updated_at":"2026-06-09T13:31:11.804Z","avatar_url":"https://github.com/jenorish.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MatchWith\n\n This gem internally used https://github.com/andrewberls/regularity \n \n In regularity API is like \n \n   `Regularity.new\n     .start_with(3, :digits)\n     .then('-')\n     .then(2, :letters)\n     .maybe('#')\n     .one_of(['a','b'])\n     .between([2,4], 'a')\n     .end_with('$')`\n    \n it will generate `/^[0-9]{3}-[A-Za-z]{2}#?[a|b]a{2,4}\\$$/`\n \n But if you want to match this Regex to string means you have to call \n \n `if \"string\"[Regularity.new.one_of(['a','b']).regex]`\n \n Here, \n\n `if \"string\".match_with.one_of(['a','b']).result` \n \n It is more clear.\n\nThanks to @andrewberls\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'match_with'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install match_with\n\n## Usage\n\nTODO: Write usage instructions here\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/match_with/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenorish%2Fmatch_with","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenorish%2Fmatch_with","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenorish%2Fmatch_with/lists"}