Skip to content

Make it clearer that parentheses are needed to use regex's #229

Closed

Description

@tunetheweb

What is the issue with the URL Pattern Standard?

It wasn't clear to me that parentheses are used to create regex groups.

It is kind of explained with examples like this:

A regular expression can also be used instead, so the pathname pattern "/blog/:year(\d+)/:month(\d+)" will match "/blog/2012/02".

Or bits like this:

"/(bar)"
"char" and "regexp" tokens.

But given parentheses are commonly used in regexs themselves I think this could be made clearer. Unless I missed where this was explained?

Activity

  1. added a commit that references this issue on Aug 29, 2024
    20e4de9
  2. added a commit that references this issue on Jan 30, 2025
    75bd911
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