Skip to content

regex expression for validUrlQueryChars unable to identify URI Template  #422

Description

@AjayKumar-25

Describe the bug
I am using validUrlQueryChars regex ( i.e. /[a-z0-9!?*'@();:&=+$/%#[]-_.,~|]/i; ) to detect an URI with Template but it is not detecting complete url

To Reproduce

example url - https://abc.com/path?param={VARIABLE}

Using above regex for matching query params for given url, it's only able to identify https://abc.com/path?param= this as the matched URL

Expected behavior
The regex should be able to match complete url i.e. https://abc.com/path?param={VARIABLE}

Please suggest.

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