@micro-router
Preparing search index...
@micro-router/core
matchRegexp
Function matchRegexp
matchRegexp
<
P
extends
string
=
"[string]"
>
(
__namedParameters
:
MatchRegexpOpts
<
P
>
,
)
:
Path
<
P
,
string
>
A path that will succeed if the provided regexp matches.
The regexp must capture two groups:
the first group will be extracted as the string params
the second must be the remainder of the input path to process
Type Parameters
P
extends
string
=
"[string]"
Parameters
__namedParameters
:
MatchRegexpOpts
<
P
>
Returns
Path
<
P
,
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@micro-router
Loading...
A path that will succeed if the provided regexp matches.
The regexp must capture two groups: