Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-04-06 10:13
Flavor·ECMAScript (JavaScript)

/
(?:opc.tcp|https|http):\/\/(\S+):\d+[\/\w]*
/
Open regex in editor

Description

Gets IP-Address/host name from URL

Submitted by anonymous