Regular Expressions 101

Community Patterns

Community Library Entry

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