Regular expressions in server_name: pattern length

Igor Sysoev igor at
Wed Dec 9 12:32:05 MSK 2009

On Wed, Dec 09, 2009 at 09:21:24AM +0000, Phillip Oldham wrote:

> Is it possible to capture the length of a particular pattern in the 
> server_name section?
> For example, I'm having trouble getting the following to match:
> server_name ~([a-z]{2,3})?\d{3,6}\.mysite\.org;
> I'm using 0.7.62.

Do you mean how to learn the caputured data length ? No way.

Igor Sysoev

More information about the nginx mailing list