{"id":22065961,"url":"https://github.com/iij/mruby-regexp-pcre","last_synced_at":"2025-05-13T01:53:10.290Z","repository":{"id":7769624,"uuid":"9138428","full_name":"iij/mruby-regexp-pcre","owner":"iij","description":"Regular expression library for mruby, PCRE version.","archived":false,"fork":false,"pushed_at":"2022-02-20T04:11:39.000Z","size":2695,"stargazers_count":19,"open_issues_count":5,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-13T01:53:07.416Z","etag":null,"topics":["mruby","pcre","regexp"],"latest_commit_sha":null,"homepage":"","language":"C","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/iij.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-04-01T00:39:09.000Z","updated_at":"2024-10-23T06:55:52.000Z","dependencies_parsed_at":"2022-09-13T14:01:23.227Z","dependency_job_id":null,"html_url":"https://github.com/iij/mruby-regexp-pcre","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/iij%2Fmruby-regexp-pcre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-regexp-pcre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-regexp-pcre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-regexp-pcre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iij","download_url":"https://codeload.github.com/iij/mruby-regexp-pcre/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856627,"owners_count":21974576,"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":["mruby","pcre","regexp"],"created_at":"2024-11-30T19:22:52.398Z","updated_at":"2025-05-13T01:53:10.271Z","avatar_url":"https://github.com/iij.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"mruby-regexp-pcre\n=================\n![](https://github.com/iij/mruby-regexp-pcre/workflows/Build%20and%20Test/badge.svg)\n\n\"mruby-regexp-pcre\" is a regular expression module for mruby, based on\n[PCRE](http://pcre.org).\nIt provides Regexp and MatchData classes.\n\n\n## Requirements\n\nnone (libpcre is bundled).\n\n\n## Example\n\n```Ruby\nline = \"#hoge\"\n/^#.*/ =~ line\n\ncsv = \"a, b, c\"\ncsv.split /,\\s*/\n\nkvs = \"key: value\"\nm = /(\\w+)\\s*:\\s*(\\w*)/.match(kvs)\nkey, value = m[1], m[2]\n```\n\n## Difference between PCRE and MRI Regexp\n|    | MRI (CRuby) | PCRE |\n|:---|:------------|:-----|\n| \\h | A hexdigit character (`[0-9a-fA-F]`) | a horizontal white space character\n\n\n## Test\nIf you have mruby source code and imported mruby-regexp-pcre as an mrbgem,\njust run \"rake test\" to execute test scripts in ``test`` directory:\n```\n% cd mruby\n% rake test\n```\n\nOr run ``run_test.rb`` to check out mruby source code into a temporary directory,\nand run tests on it:\n```\n% cd mruby-regexp-pcre\n% ruby run_test.rb test\n% rm -rf tmp\n```\n\n## Alternatives\nIf mruby-regexp-pcre does not meet your requirements, try mruby-onig-regexp.\nIt consumes much more memory but has better compatibility with MRI.\n\n- https://github.com/mattn/mruby-onig-regexp (Onigumo/Oniguruma)\n\nOther alternatives:\n\n- https://github.com/mattn/mruby-pcre-regexp (PCRE)\n- https://github.com/masamitsu-murase/mruby-hs-regexp (Henry Spencer's)\n\n\n## License\n\n**Note: If you build your mruby with bundled PCRE (default), read the [pcre/LICENCE](pcre/LICENCE) file carefully.**\n\nThis software (except for \"pcre\" directory) is distributed under the license terms below.\n\nCopyright (c) 2013 Internet Initiative Japan Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a \ncopy of this software and associated documentation files (the \"Software\"), \nto deal in the Software without restriction, including without limitation \nthe rights to use, copy, modify, merge, publish, distribute, sublicense, \nand/or sell copies of the Software, and to permit persons to whom the \nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in \nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \nDEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-regexp-pcre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiij%2Fmruby-regexp-pcre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-regexp-pcre/lists"}