Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Getting matched groups #383

@mingfang

Description

@mingfang

Is there a way to get the matched groups when using a rule matching pattern that contains groups?

For example, this code matches three groups.

@when_all(m.url.matches('(https?://)?([0-9a-z.-]+)%.[a-z]{2,6}(/[A-z0-9_.-]+/?)*'))

I would like to get the value of the matched groups.

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