{"id":19515108,"url":"https://github.com/jusleg/regexify","last_synced_at":"2025-04-26T06:30:44.970Z","repository":{"id":56891667,"uuid":"121828482","full_name":"jusleg/regexify","owner":"jusleg","description":"Compact and flexible syntax to generate regular expressions","archived":false,"fork":false,"pushed_at":"2019-05-27T15:41:55.000Z","size":9,"stargazers_count":9,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:40:38.802Z","etag":null,"topics":["gem","regex","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/regexify","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/jusleg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-02-17T04:53:24.000Z","updated_at":"2025-03-17T15:18:32.000Z","dependencies_parsed_at":"2022-08-20T16:00:57.904Z","dependency_job_id":null,"html_url":"https://github.com/jusleg/regexify","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/jusleg%2Fregexify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusleg%2Fregexify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusleg%2Fregexify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusleg%2Fregexify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jusleg","download_url":"https://codeload.github.com/jusleg/regexify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250943926,"owners_count":21511652,"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":["gem","regex","ruby","ruby-gem"],"created_at":"2024-11-10T23:38:38.523Z","updated_at":"2025-04-26T06:30:44.704Z","avatar_url":"https://github.com/jusleg.png","language":"Ruby","readme":"# Regexify [![Gem Version](https://badge.fury.io/rb/regexify.svg)](https://badge.fury.io/rb/regexify) [![codebeat badge](https://codebeat.co/badges/91f5a907-8005-41f5-9e34-72370767ea36)](https://codebeat.co/projects/github-com-jusleg-regexify-master)\n\n[View docs](http://www.rubydoc.info/gems/regexify/0.0.1/Regexify)\n\nHaving fun with regex. Is it possible? I think so.\n\n\n### Installation\n\n```\ngem install regexify\n```\n\n\n### Usage\n\nRegexify provides a simple interface to write regex in ruby\n\nFour methods can be used to create the regex:\n\n* `begin_with`\n* `then`\n* `not`\n* `end_with`\n\nAnd the `regex` method will convert it to a `Regexp` object.\n\nYou can use strings/characters using these methods as well as symbols from the list below:\n\n* **number:** `0-9`\n* **uppercase:** `A-Z`\n* **lowercase:** `a-z`\n* **letter:** `a-zA-Z`\n* **alphanumeric:** `a-zA-Z0-9`\n* **anything:** `.`\n* **whitespace:** `\\s`\n* **tab:** `\\t`\n* **space:** ` `\n\n`Range` and `exactly` can be used to specify a number of occurrences.\n\nHere is a basic example:\n\n```ruby\nRegexify.new\n  .begin_with('hello', 'hola', range: [2,3])\n  .then(',')\n  .then('world', exactly: 2)\n  .end_with('!', range: [1,]).regex\n\n =\u003e /^(hello|hola){2,3},(world){2}!{1,}$/ \n \nRegexify.new\n  .begin_with(:uppercase, exactly: 3)\n  .then(:number, '-', range: [2,10])\n  .not(:alphanumeric, exactly:1)\n  .end_with('!').regex\n\n =\u003e /^[A-Z]{3}[0-9-]{2,10}[^a-zA-Z0-9]!$/\n```\n\nThis project was heavily inspired by [regularity](https://github.com/andrewberls/regularity)\n\n### LICENSE\n\nThis gem is MIT licensed, please see LICENSE for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusleg%2Fregexify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjusleg%2Fregexify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusleg%2Fregexify/lists"}