{"id":20649159,"url":"https://github.com/liulinboyi/regexp","last_synced_at":"2026-04-21T11:01:39.956Z","repository":{"id":109598532,"uuid":"432654442","full_name":"liulinboyi/RegExp","owner":"liulinboyi","description":"JavaScript正则 JavaScript regexp 移植MuJS中的正则，使用JavaScript，来实现JavaScript中的正则，RegExp in JavaScript，方便大家使用自己熟悉的语言调试","archived":false,"fork":false,"pushed_at":"2021-11-29T05:49:45.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-03T06:25:19.645Z","etag":null,"topics":["c","javascript","mujs","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/liulinboyi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-28T08:07:49.000Z","updated_at":"2022-12-17T15:42:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd20bf21-852b-45bf-b7b7-5abb176b0b40","html_url":"https://github.com/liulinboyi/RegExp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liulinboyi/RegExp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2FRegExp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2FRegExp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2FRegExp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2FRegExp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liulinboyi","download_url":"https://codeload.github.com/liulinboyi/RegExp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2FRegExp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32088913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","javascript","mujs","regexp"],"created_at":"2024-11-16T17:12:57.900Z","updated_at":"2026-04-21T11:01:39.933Z","avatar_url":"https://github.com/liulinboyi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript版正则(RegExp)实现\n\n\u003e 使用JavaScript，来实现JavaScript中的正则，RegExp in JavaScript，方便大家使用自己熟悉的语言调试\n\n- 移植于[RegExp.c](./RegExp.c)，大致上是[MuJS中的正则](https://github.com/ccxvii/mujs/blob/master/regexp.c)，MuJS仓库后续有些许变动，不是特别大\n\n- [原仓库](https://github.com/ccxvii/minilibs/blob/master/regexp.c)\n\n- 移植过来的可能有Bug，我只测试了[RegExp.js](./RegExp.js)中的两个用例，其他未测试。\n\n\n测试用例：\n\n```\n\"/root/temp/hello.mp3\".match(/.+\\/(.+\\..+)$/)\n\n\"noonday\".match(/\\B../)\n\n\"_foo0_(x,y)\".match(/^([_a-zA-Z0-9]*)(?:\\(.*\\))/)\n\n\"_foo0_(x,y)\".match(/^((?:[_a-zA-Z])+(?:[_a-zA-Z\\d])*)(?:\\((.*)\\))?/)\n\n\"0_foo0_(x,y)\".match(/^((?:[_a-zA-Z])+(?:[_a-zA-Z\\d])*)(?:\\((.*)\\))?/) // no match\n\n\"_foo0_  (x,y)\".match(/^((?:[_a-zA-Z])+(?:[_a-zA-Z\\d])*)[ ]*(?:\\((.*)\\))?/)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulinboyi%2Fregexp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliulinboyi%2Fregexp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulinboyi%2Fregexp/lists"}