Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-07-31 16:11
Flavor·PCRE (Legacy)

/
(^([A-Z]*)((:\/\/)?)([A-Z\d\.-]{2,})\.([A-Z]{2,}):(\d{2,5})?)
/
i
Open regex in editor

Description

Extracts the port from different possible forms of URL

Submitted by anonymous