Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(https?:\/\/.*)(:\d*)\/?(.*)
/
gm

Description

Find port number and remove it from URL

Submitted by M Rivas - 2 years ago