Regular Expressions 101

Community Patterns

There does not seem to be anything here

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