Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-05-20 02:47
Flavor·ECMAScript (JavaScript)

/
^\/(?:(?:[\w\d-]\/?)*[A-Za-z0-9])$
/
gm
Open regex in editor

Description

This is a valid URL Path which should be written after Port or Basepath This URL Path doesn't support asterisk wildcard (/) (path). If you want to support asterisk wildcard, just add * in the last matching group. Like this:

[A-Za-z0-9*]

This implementation was meant for personal use, feel free to fork it as you need!

Submitted by anonymous