Support for regex in `EffectFactory.matchPath`
See original GitHub issueCan I use regex in the marble routes?
I know that are some especial chars that I can use like:
EffectFactory
.matchPath('/:dir*')
But what about more complex regex?
EffectFactory
.matchPath(/^\/(api|rest)\/.+$/)
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Regex to match path containing one of two strings
What's with the negative lookahead? This is a simple, if not trivial, positive match. ^/content/au/(?:millenial|boomer)(?:/|$).
Read more >How to use the @marblejs/core.combineRoutes function in ...
To help you get started, we've selected a few @marblejs/core. ... import { combineRoutes, EffectFactory } from '@marblejs/core'; import { authorize$ } from ......
Read more >Regular Expression (Regex) Tutorial
Regex is supported in all the scripting languages (such as Perl, Python, PHP, and JavaScript); as well as general purpose programming languages such...
Read more >pillarjs/path-to-regexp: Turn a path string such as `/user - GitHub
The pathToRegexp function will return a regular expression object based on the provided path argument. It accepts the following arguments: path A string,...
Read more >Regular expression (regex) reference - Pexip Infinity Docs
Character Description Example
. Matches any single character. a.c matches aac, abc, azc, a2c, a$c e...
\d Matches a decimal digit character (i.e. 0‑9). a\d...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zeucxb fixed with v1.1.1 patch 💪
Yeah @krzysztof-miemiec it works. Awesome!!!