Regular Expressions 101

Library entries

Trailing slash URL with query parameters

Vote

0

Regular Expression
javascript

/
^(?![/]$|[/?].*$)(.*\/[?](.*)$|.*\/$)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago