{"id":20046668,"url":"https://github.com/monksc/regexsentenses","last_synced_at":"2026-06-13T09:32:02.481Z","repository":{"id":89792373,"uuid":"377797953","full_name":"Monksc/regexsentenses","owner":"Monksc","description":"This program takes in a regex expression and outputs all possible sentences that match the expression.","archived":false,"fork":false,"pushed_at":"2021-06-17T13:55:52.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T08:14:17.785Z","etag":null,"topics":["regex","regex-pattern"],"latest_commit_sha":null,"homepage":"","language":"C","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/Monksc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-17T10:53:38.000Z","updated_at":"2021-06-17T14:14:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"341d6b15-038d-4f89-ad04-42575ef5a868","html_url":"https://github.com/Monksc/regexsentenses","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Monksc/regexsentenses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fregexsentenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fregexsentenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fregexsentenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fregexsentenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monksc","download_url":"https://codeload.github.com/Monksc/regexsentenses/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fregexsentenses/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34279898,"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-13T02:00:06.617Z","response_time":62,"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":["regex","regex-pattern"],"created_at":"2024-11-13T11:28:24.347Z","updated_at":"2026-06-13T09:32:02.464Z","avatar_url":"https://github.com/Monksc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regexsentenses\nThis program takes in a regex expression and outputs all possible sentences that match the expression.\n\n# Quick Set Up\n```\nmake install\nregexsentenses \"[0-9A-F]{1:3}\\n\"\n```\n\n# Examples\nTo make random css\n```\nregexsentenses \"\\.[a-z]{3}\\{\\n\\t[(background\\-color)(color)]: #[0-9A-F]{6};\\n\\}\\n\"\n```\n\nCracking John Smiths super secret password\n```\nregexsentenses \"[jJ]ohn[sS]mith[0-9]{0:2}[!@#$%]{0:1}\\n\" | \\\n    xargs -P0 -I % sh -c \\\n        'if [ \"$(echo '%' | openssl dgst -hex -sha256)\" = \"55fc540c73118d224e8fa3523761ddde0a6d626d18896bea6afb2eb748c00b78\" ]; then echo '%'; fi'\n```\n\nTo calculate the total of all possible combination of 3 digits including an empty character\n```\necho $(regexsentenses '\\[\\([0-9]{1:3}\\\\\\+\\)\\]')\"0\\n\" | regexsentenses | bc\n```\n\nTo print all numbers starting with 0 or 1\n```\nregexsentenses \"[1-9][0-9]*\\n\"\nregexsentenses \"[0-9]+\\n\"\n```\n\nTest all possibilities to a regex expression\n```\nregexsentenses \"if *\\(.*\\)\\{\\n\"\nregexsentenses -c 2 \"for[ \\t\\n]+\\([ \\t\\n]*int[ \\t\\n]+i[ \\t\\n]*=[ \\t\\n]*0[ \\t\\n]*;[ \\t\\n]*i[ \\t\\n]*\u003c[a-zA-Z0-9 \\t\\n]*;[ \\t\\n]*i[ \\t\\n]*\\+\\+[ \\t\\n]*;[ \\t\\n]*\\)[ \\t\\n]*\\{\\n\"\n```\n\n\n# Install\nInstall to /usr/local/bin/\n```\nmake install\n```\n\n# Uninstall\n```\nmake uninstall\n```\n\n# Build\n```\nmake build\n```\n\n# Clean\n```\nmake clean\n```\n\n# Run Through Make\n```\necho \"[0-9A-F]+\\n\" | make run clean\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonksc%2Fregexsentenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonksc%2Fregexsentenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonksc%2Fregexsentenses/lists"}