question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We want regex pattern rewrite

See original GitHub issue

Hope 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
harindakacommented, Oct 9, 2019

not stale

0reactions
FrostyLeafcommented, Jul 8, 2020

@alphashr, cool! Thanks for reminding me. This can be helpful.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found