module PathRegexes

Constants

PATHCHARS_CLASS

Omit the parentheses

PATHTERM_CLASS

Chars to end a URL

PATH_DEF
"(?(DEFINE)(?<PATH_INNER>(?x: (?: " PATHCHARS_CLASS"* \\( (?&PATH_INNER) \\) )* " PATHCHARS_CLASS "* )))"

Same as above, but the last character (if exists and is not a parenthesis) must be from PATHTERM_CLASS.

PATH_INNER_DEF

Recursive definition of PATH that allows parentheses and square brackets only if balanced, see bug 763980.

URLPATH
VOIP_PATH