Regular Expressions 101

Community Patterns

Host & Port & Path

0

Regular Expression
ECMAScript (JavaScript)

/
^([a-z0-9_\-.]+)(?:\:([0-9]+))?(\/[^\?\s]*)?
/
gm

Description

support host port and path

Submitted by anonymous - a year ago