Skip to content

Can I use regex without a variable? Can I use flags? #210

@adjenks

Description

@adjenks

Regex with no variable:

    $r->addRoute('GET', '/{user|person}', 'get_user_handler');

Case insensitive flag:

    $r->addRoute('GET', '/{/user/i}', 'get_user_handler');

I tried both, they did not work. Am I doing it wrong?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions