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.