{"id":21056013,"url":"https://github.com/xp-framework/patterns","last_synced_at":"2025-07-30T07:35:17.367Z","repository":{"id":57084831,"uuid":"47652390","full_name":"xp-framework/patterns","owner":"xp-framework","description":"Pattern matching","archived":false,"fork":false,"pushed_at":"2022-03-04T08:56:15.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T19:22:21.774Z","etag":null,"topics":["php","regex","scanner","xp-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xp-framework.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-08T22:04:32.000Z","updated_at":"2022-03-04T08:51:36.000Z","dependencies_parsed_at":"2022-08-24T14:59:11.802Z","dependency_job_id":null,"html_url":"https://github.com/xp-framework/patterns","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fpatterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fpatterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fpatterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fpatterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-framework","download_url":"https://codeload.github.com/xp-framework/patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243500787,"owners_count":20300775,"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":["php","regex","scanner","xp-framework"],"created_at":"2024-11-19T16:48:18.490Z","updated_at":"2025-03-14T00:15:01.939Z","avatar_url":"https://github.com/xp-framework.png","language":"PHP","readme":"Pattern matching\n================\n\n[![Build status on GitHub](https://github.com/xp-framework/patterns/workflows/Tests/badge.svg)](https://github.com/xp-framework/patterns/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-framework/patterns/version.png)](https://packagist.org/packages/xp-framework/patterns)\n\nRegular expressions and text scanning\n\nExample\n-------\n```php\nuse text\\regex\\Pattern;\n\n$pattern= Pattern::compile('([w]{3}\\.)?example\\.(com|net|org)');\nif ($pattern-\u003ematches($input)) {\n  // Looks like an example domain\n}\n\n$result= $pattern-\u003ematch($input);\n$group= $result-\u003egroup(0);  // [ \"www.example.com\", \"www.\", \"www\", \"com\" ]\n```\n\nFurther reading\n---------------\n* [RFC #165: New text.regex package](https://github.com/xp-framework/rfc/issues/165)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fpatterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-framework%2Fpatterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fpatterns/lists"}