Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-02-15 19:26
Flavor·JavaScript

/
(https?:\/\/.*)(:\d*)\/?(.*)
/
gm
Open regex in editor

Description

Find port number and remove it from URL

Submitted by M Rivas