Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-10-14 07:57
Flavor·JavaScript

/
^http:\/\/www.+[a-zA-Z0-9]\.[a-z]{2,3}$
/
gim
Open regex in editor

Description

Regular expression to test the validité of a basic website address having the format.

http://www.anyadress.domain

the domain being 2-3 caracteres

Submitted by Gilles