Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-06-07 14:06
Flavor·PCRE (Legacy)

/
^(https?:\/\/)?([\dA-Za-z\.-]+)\.([A-Za-z\.]{2,6})([\/\w \.-]*)*\/?$
/
gm
Open regex in editor

Description

Simple url matcher catches most urls users enter

Submitted by kristian epps