@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
122 lines (59 loc) • 1.76 kB
Markdown
---
lang: en
title: 'API docs: rest.regexprouter'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.regexprouter.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RegExpRouter](./rest.regexprouter.md)
## RegExpRouter class
Router implementation based on regexp matching
**Signature:**
```typescript
export declare class RegExpRouter extends BaseRouter
```
**Extends:** BaseRouter
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(options)](./rest.regexprouter._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `RegExpRouter` class
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[addRouteWithPathVars(route)](./rest.regexprouter.addroutewithpathvars.md)
</td><td markdown="1">
`protected`
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[findRouteWithPathVars(verb, path)](./rest.regexprouter.findroutewithpathvars.md)
</td><td markdown="1">
`protected`
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[listRoutesWithPathVars()](./rest.regexprouter.listrouteswithpathvars.md)
</td><td markdown="1">
`protected`
</td><td markdown="1">
</td></tr>
</tbody></table>