{"id":16304787,"url":"https://github.com/moznion/regexp-lexer","last_synced_at":"2025-04-10T23:53:19.193Z","repository":{"id":23139288,"uuid":"26494419","full_name":"moznion/Regexp-Lexer","owner":"moznion","description":"Lexer for regular expression of perl","archived":false,"fork":false,"pushed_at":"2015-02-07T06:54:09.000Z","size":252,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T23:53:16.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Regexp::Lexer","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2014-11-11T16:48:40.000Z","updated_at":"2015-02-07T06:54:05.000Z","dependencies_parsed_at":"2022-07-31T07:18:02.540Z","dependency_job_id":null,"html_url":"https://github.com/moznion/Regexp-Lexer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FRegexp-Lexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FRegexp-Lexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FRegexp-Lexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FRegexp-Lexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/Regexp-Lexer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317703,"owners_count":21083528,"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":"2024-10-10T21:04:50.013Z","updated_at":"2025-04-10T23:53:19.173Z","avatar_url":"https://github.com/moznion.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moznion/Regexp-Lexer.svg?branch=master)](https://travis-ci.org/moznion/Regexp-Lexer)\n# NAME\n\nRegexp::Lexer - Lexer for regular expression of perl\n\n# SYNOPSIS\n\n    use Regexp::Lexer qw(tokenize);\n    my $tokens = tokenize(qr{\\Ahello\\s+world\\z}i);\n\n# DESCRIPTION\n\nRegexp::Lexer is a lexer for regular expression of perl.\n\nThis module splits the regular expression string to tokens\nwhich has minimum meaning.\n\n# FUNCTIONS\n\n- `tokenize($re:Regexp)`\n\n    Tokenizes the regular expression.\n\n    This function takes an argument as `Regexp`, namely it must be regexp quoted variable (i.e. `qr/SOMETHING/`).\n    If not `Regexp` argument is given, this function throws exception.\n\n    This function returns the result like so;\n\n        {\n            tokens =\u003e [\n                {\n                    char =\u003e '\\A',\n                    index =\u003e 1,\n                    type =\u003e {\n                        id =\u003e 67,\n                        name =\u003e 'EscapedBeginningOfString',\n                    },\n                },\n                {\n                    char =\u003e 'h',\n                    index =\u003e 2,\n                    type =\u003e {\n                        id =\u003e 1,\n                        name =\u003e 'Character',\n                    },\n                },\n                ...\n            ],\n            modifiers =\u003e ['^', 'i'],\n        }\n\n    `tokens` is the tokens list. Information about `type` of token is located in the [Regexp::Lexer::TokenType](https://metacpan.org/pod/Regexp::Lexer::TokenType).\n\n    `modifiers` is the list of modifiers of regular expression. Please see also [perlre](https://metacpan.org/pod/perlre).\n\n# SEE ALSO\n\n- [perlre](https://metacpan.org/pod/perlre)\n- [perlrebackslash](https://metacpan.org/pod/perlrebackslash)\n- [Regexp::Lexer::TokenType](https://metacpan.org/pod/Regexp::Lexer::TokenType)\n\n# LICENSE\n\nCopyright (C) moznion.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nmoznion \u003cmoznion@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fregexp-lexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fregexp-lexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fregexp-lexer/lists"}