Skip to content

Issue with Regex Tool's Lack of Support for Lazy Quantifier "{,M}" Without Lower Limit #505

Open
@huxiaogang927

Description

@huxiaogang927

The lazy quantifier, denoted by "{,M}", is a valuable feature in regex patterns. It allows for a non-greedy matching behavior by matching the shortest possible sequence of characters that fulfils the pattern's conditions. This is particularly useful in scenarios where flexibility in the length of the matched text is required, and specifying an exact lower limit is unnecessary.

However, I have observed that the regex tool provided by [Tool/Platform] does not accept the "{,M}" format and requires a lower limit to be explicitly defined using either "{N,M}" or "{0,M}". This limitation restricts the tool's versatility and hinders users from achieving optimal results in some instances.

I kindly request that your development team consider addressing this issue by extending support for the "{,M}" lazy quantifier without requiring a lower limit specification. This enhancement would undoubtedly contribute to a more user-friendly and powerful regex tool, accommodating a wider range of use cases and simplifying the regex-writing process for users.

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