Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
((http|https):\/\/)?([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?
/
gm

Description

Just a basic URL validation regular expression. Most recommend you use the URL input type in HTML5

Submitted by anonymous - 4 years ago