Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

support host port and path

Submitted by anonymous - 2 years ago