Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([^?#]+).*
/
gm

Description

Capture URL without Query Parameters

/^([^?#]+).*/gm

Submitted by anonymous - 2 years ago