Rewrite with regex

Francis Daly francis at daoine.org
Mon Apr 12 21:12:13 UTC 2021


On Mon, Apr 12, 2021 at 03:01:12PM +0200, Artur wrote:
> Le 12/04/2021 à 14:46, Francis Daly a écrit :

Hi there,

> > Does 
> >
> >   rewrite "^/([a-z][-a-z]{0,30}[a-z])$" ...
> >
> > do what you want in most cases?
> 
> No, because it allows these cases I don't want :
> 
> - a-----b
> - a---b---c---d

That's reasonable.

You'll probably find it easier to come up with the regex or regexes that
you want, if you can list all of the requirements.

That will make it easier to demonstrate that they are or are not met by
a suggested solution.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list