{"id":18936326,"url":"https://github.com/shellbear/v-regex","last_synced_at":"2026-01-28T06:05:19.447Z","repository":{"id":119546922,"uuid":"194450476","full_name":"shellbear/v-regex","owner":"shellbear","description":" A simple regex library for V","archived":false,"fork":false,"pushed_at":"2019-09-30T16:19:52.000Z","size":6,"stargazers_count":30,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T21:24:15.781Z","etag":null,"topics":["pcre","regex","v","vlang"],"latest_commit_sha":null,"homepage":"","language":"Verilog","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/shellbear.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":"2019-06-29T21:37:55.000Z","updated_at":"2023-12-31T02:27:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c004658-33ba-4be3-bd70-19565a2bd6db","html_url":"https://github.com/shellbear/v-regex","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/shellbear%2Fv-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fv-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fv-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellbear%2Fv-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellbear","download_url":"https://codeload.github.com/shellbear/v-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239937701,"owners_count":19721482,"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":["pcre","regex","v","vlang"],"created_at":"2024-11-08T12:07:00.842Z","updated_at":"2026-01-28T06:05:14.411Z","avatar_url":"https://github.com/shellbear.png","language":"Verilog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v-regex\n\nA simple regex library for [VLang](https://github.com/vlang/v).\nIt use bindings from the [PCRE](https://www.pcre.org/) library.\n\n## Example\n\n```go\n# examples/match_after.v\n\nimport regex\n\nfn main() {\n  r := regex.new_regex('Match everything after this: (.+)', 0) or {\n    println('An error occured!')\n    return\n  }\n\n  m := r.match_str('Match everything after this: \"I \u003c3 VLang!\"', 0, 0) or {\n    println('No match!')\n    return\n  }\n\n  // m.get(0) -\u003e Match everything after this: \"I \u003c3 VLang!\"\n  // m.get(1) -\u003e \"I \u003c3 VLang!\"'\n  // m.get(2) -\u003e Error!\n  whole_match := m.get(0) or {\n    println('We matched nothing...')\n    return\n  }\n\n  matched_str := m.get(1) or {\n    println('We matched nothing...')\n    return\n  }\n\n  println(whole_match) // Match everything after this: \"I \u003c3 VLang!\"\n  println(matched_str) // \"I \u003c3 VLang!\"\n\n  r.free()\n}\n```\n\n```bash\n\u003e v -o example examples/match_after.v\n\u003e ./example\nMatch everything after this: \"I \u003c3 VLang!\"\n\"I \u003c3 VLang!\"\n```\n\n## Usage\n\nSome examples are available in the [examples](examples/) directory.\n\n## Built With\n\n* [PCRE](https://www.pcre.org/) - Perl Compatible Regular Expressions\n* [Vlang](https://github.com/vlang/v) - Simple, fast, safe, compiled language\n\n## License\n\n[MIT](LICENSE)\n\n## Contributors\n\n* [Shellbear](https://github.com/shellbear) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellbear%2Fv-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellbear%2Fv-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellbear%2Fv-regex/lists"}