Skip to content

Cannot define complex routes , i.e. date #1700

Description

@nowackipawel

I've tried to define simple placeholder for date:
i.e.:

^20[0-5][0-9]\\-(1[0-2]|0[1-9])\\-(3[0-1]|[0-2][1-9]) // double "-" escaping

or

(20[0-5][0-9]\\-(1[0-2]|0[1-9])\\-(3[0-1]|[0-2][1-9]))

but I get

ErrorException

preg_match(): Unknown modifier '0' search →

SYSTEMPATH/Router/RouteCollection.php at line 1210

I think sth bad is happening here:
RouteCollection.php ::1192:
preg_match_all('/\(([^)]+)\)/', $from, $matches);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions