Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves regexp for routes #1

Closed
AlbertoFdzM opened this issue Apr 19, 2016 · 0 comments
Closed

Improves regexp for routes #1

AlbertoFdzM opened this issue Apr 19, 2016 · 0 comments
Assignees

Comments

@AlbertoFdzM
Copy link
Owner

Try to implement the next regexp

^\/\^\\\/(?:((?:\w|\\\.|-)*)|(\(\?:\(\[\^\\\/\]\+\?\)\)))\\\/.*

To capture the next type of routes:

/^\/v1-0\._0\/?(?=\/|$)/i

Note: Pay attention to the hyphens - the underscore _ and the dot with the backslash \.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant