We want regex pattern rewrite
See original GitHub issueHope ambassador to support some rules like below:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: regex_pattern_mapping
prefix_regex: true
prefix: /svc/([\w-]+)/([\w-]+)/
service: $2.$1:80
host_rewrite: $2.$1
---
apiVersion: ambassador/v0
kind: Mapping
name: regex_pattern_mapping2
prefix_regex: true
prefix: /svc/{namespace}/{svcname}/
service: $namespace.$svcname:80
host_rewrite: $namespace.$svcname
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:9 (2 by maintainers)
Top Results From Across the Web
RegEx Rewrites - IceWarp
The regex rewrite is in fact much simpler as there are solid rules of usage. You always work with URIs and the result...
Read more >We want regex pattern rewrite · Issue #1162 - GitHub
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity...
Read more >RegEx for Redirect Rules and SSL - Support Center
This article will walk you through understanding how RegEx patterns work. RegEx is syntax used to create dynamic redirects and SSL rules.
Read more >Advanced Usage - Comby
This is useful for rewriting repetitions of a pattern. ... If you want your missing language to be built into Comby, open a...
Read more >Nginx rewrite rule for specific regex pattern - Stack Overflow
(.*) - Represents third capturing group matching everything after alphanumeric pattern string. $1$2.php$3 - For the replacement part; you can ...
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 Free
Top 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
not stale
@alphashr, cool! Thanks for reminding me. This can be helpful.