Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4737

Extract regx group in haproxy

$
0
0

Hi,
I would like to extract the regx group( want to extract only numerical value) from url and stored it in variable.
For example :
Url be : www.example.com/somesting/somestring/abc-123
Here abc is fixed. Here value after abc-123 will change it could be anything.
But I want to fetch value after abc-

Here is my regx : ^([^?]+).?(abc)-(\d)
here \3 is 123
I want to store that value in some other variable. How can I achieve that in haproxy confiuration ??

Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>