You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Important:** When matching/testing against a generated RegExp, your path **must** begin with a leading slash (`"/"`)!
89
89
90
+
## Regular Expressions
91
+
92
+
For fine-tuned control, you may pass a `RegExp` value directly to `regexparam` as its only parameter.
93
+
94
+
In these situations, `regexparam`**does not** parse nor manipulate your pattern in any way! Because of this, `regexparam` has no "insight" on your route, and instead trusts your input fully. In code, this means that the return value's `keys` is always equal to `false` and the `pattern` is identical to your input value.
95
+
96
+
This also means that you must manage and parse your own `keys`~!<br>
97
+
You may use [named capture groups](https://javascript.info/regexp-groups#named-groups) or traverse the matched segments manually the "old-fashioned" way:
98
+
99
+
> **Important:** Please check your target browsers' and target [Node.js runtimes' support](https://node.green/#ES2018-features--RegExp-named-capture-groups)!
0 commit comments