Skip to content

Allow for custom Token definiton entry #2

@markopaden

Description

@markopaden

Currently, this module only allows adding definitions by adding TokenDefn objects. TokenDefn constructor has this line:
$this->regex = sprintf('%s^%s%s%s', $delimiter, $regex, $delimiter, $modifiers);
Sometimes, you don't want to add ^ into your expression. There should be a way to insert regex token only by giving it regex(string) and token name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions