Regular Expressions 101

Community Patterns

1...56789...747

RegEx to validate oAuth 2.0 redirect_uri

5

Regular Expression
ECMAScript (JavaScript)

/
^(http|https):\/\/[\d\w]{1,64}\.?[\d\w]{2,15}(\/[\d\w]*)*\??[\d\w&=]*$
/
i

Description

A simple RegEx rule which should validate redirect_uri for oAuth2

Submitted by Vlad Miller - 10 years ago