{"id":28547567,"url":"https://github.com/rust-bakery/nom-regex","last_synced_at":"2025-10-27T10:32:44.433Z","repository":{"id":38313650,"uuid":"387584072","full_name":"rust-bakery/nom-regex","owner":"rust-bakery","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-07T07:32:26.000Z","size":7,"stargazers_count":1,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T00:22:12.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/rust-bakery.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}},"created_at":"2021-07-19T20:17:55.000Z","updated_at":"2023-07-25T14:47:55.000Z","dependencies_parsed_at":"2022-08-17T15:55:36.979Z","dependency_job_id":null,"html_url":"https://github.com/rust-bakery/nom-regex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rust-bakery/nom-regex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bakery%2Fnom-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bakery%2Fnom-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bakery%2Fnom-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bakery%2Fnom-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-bakery","download_url":"https://codeload.github.com/rust-bakery/nom-regex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bakery%2Fnom-regex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264130511,"owners_count":23562041,"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":[],"created_at":"2025-06-10T00:37:20.976Z","updated_at":"2025-10-27T10:32:44.377Z","avatar_url":"https://github.com/rust-bakery.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nom-regex\n\nThis crate provides combinators for [nom parser combinators](https://crates.io/crates/nom) using the [regex](https://crates.io/crates/regex) crate.\n\n## Example\n\n```rust\nuse nom::{Err, error::ErrorKind};\nuse nom_regex::str::re_match;\nfn main() {\n  let re = regex::Regex::new(r\"^\\d{4}\").unwrap();\n  let parser = re_match::\u003c(\u0026str, ErrorKind)\u003e(re);\n  assert_eq!(parser(\"2019\"), Ok((\"\", \"2019\")));\n  assert_eq!(parser(\"abc\"), Err(Err::Error((\"abc\", ErrorKind::RegexpMatch))));\n  assert_eq!(parser(\"2019-10\"), Ok((\"\", \"2019-10\")));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bakery%2Fnom-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-bakery%2Fnom-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bakery%2Fnom-regex/lists"}