{"id":16873856,"url":"https://github.com/tony19/named-regexp","last_synced_at":"2025-05-15T13:06:01.368Z","repository":{"id":3955646,"uuid":"5048893","full_name":"tony19/named-regexp","owner":"tony19","description":"Named capture groups for Java 5/6 regular expressions","archived":false,"fork":false,"pushed_at":"2025-04-07T01:01:04.000Z","size":783,"stargazers_count":91,"open_issues_count":0,"forks_count":20,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-14T20:58:54.632Z","etag":null,"topics":["android","java","regex"],"latest_commit_sha":null,"homepage":"http://tony19.github.io/named-regexp/index.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tony19.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,"zenodo":null}},"created_at":"2012-07-14T16:17:16.000Z","updated_at":"2025-04-07T01:01:07.000Z","dependencies_parsed_at":"2024-01-21T00:29:30.358Z","dependency_job_id":"45a3fe94-670d-48bf-aca7-212ca02b0c2a","html_url":"https://github.com/tony19/named-regexp","commit_stats":{"total_commits":258,"total_committers":4,"mean_commits":64.5,"dds":0.2829457364341085,"last_synced_commit":"6e7362e1e4daad8f4833fbe8d8881614a4804e6a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony19%2Fnamed-regexp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony19%2Fnamed-regexp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony19%2Fnamed-regexp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony19%2Fnamed-regexp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tony19","download_url":"https://codeload.github.com/tony19/named-regexp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"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":["android","java","regex"],"created_at":"2024-10-13T15:27:40.369Z","updated_at":"2025-05-15T13:06:01.337Z","avatar_url":"https://github.com/tony19.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"named-regexp [![GitHub release](https://img.shields.io/github/release/tony19/named-regexp.svg?maxAge=2592000)](https://github.com/tony19/named-regexp/releases/) [![Build](https://github.com/tony19/named-regexp/actions/workflows/ci.yml/badge.svg)](https://github.com/tony19/named-regexp/actions/workflows/ci.yml)\n---\n\nThis library backports [named capture groups](http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#groupname) from Java 7 to Java 5/6.\n\nUsage\n-----\nYou can use the same constructs for named capture groups from Java 7\n(i.e., `(?\u003cname\u003epatt)`, etc.), as in the following example:\n\n```java\nimport com.google.code.regexp.Pattern;\nimport com.google.code.regexp.Matcher;\n\npublic class NamedRegexpTest {\n    public static void main(String[] args) {\n        // pattern contains capture group, named \"foo\"\n        Matcher m = Pattern.compile(\"(?\u003cfoo\u003e\\\\w+) world\").matcher(\"hello world!\");\n        m.find();\n        System.out.println(m.group(\"foo\")); // prints \"hello\"\n    }\n}\n```\n\nInstall\n--------\n\n### Gradle\n```gradle\nimplementation 'com.github.tony19:named-regexp:1.0.0'\n```\n\n### Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.tony19\u003c/groupId\u003e\n  \u003cartifactId\u003enamed-regexp\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n[Maven Central](https://search.maven.org/artifact/com.github.tony19/named-regexp)\n\nBuild\n-----\n\nTo build `named-regexp` from source, use Maven 2 or higher and JDK 8 or higher:\n\n```bash\n$ git clone git://github.com/tony19/named-regexp.git\n$ cd named-regexp\n$ mvn package\n```\n\nTo create Java 5/6 compatible bytecode, use JDK 11 or older to build this library.\nThe build automatically targets Java 8 (the minimum supported version) if using a\nnewer JDK to build.\n\nRelease\n-------\n\nTo release a new production version, run the following command:\n\n```bash\n$ ./release.sh\n```\n\n*Releases are deployed to https://repo1.maven.org/maven2/com/github/tony19/named-regexp/*\n\nTo release a `SNAPSHOT` (i.e., the version in `pom.xml` ends with `-SNAPSHOT`),\nrun the following command:\n\n```bash\n$ mvn clean deploy\n```\n\n*Snapshots are deployed to https://oss.sonatype.org/content/repositories/snapshots/com/github/tony19/named-regexp/*\n\nLicense\n-------\n\n    Copyright 2024 Anthony Trinh.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftony19%2Fnamed-regexp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftony19%2Fnamed-regexp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftony19%2Fnamed-regexp/lists"}