Community Patterns

Community Library Entry

2

Regular Expression
Created·2016-02-13 07:55
Flavor·PCRE (Legacy)

/
^(?:http|ftp)s?:\/\/([\w][^\/=\s]+)\/?|(^w{3}[\.\w][^\/\=\s]{2,})\/?
/
mg
Open regex in editor

Description

extracts hostname from url

Submitted by Kristine Poghosyan