Welcome! Log In Create A New Profile

Advanced

Re: Rewrite with regex

Francis Daly
April 12, 2021 05:14PM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite with regex

Artur April 12, 2021 05:32AM

Re: Rewrite with regex

Artur April 12, 2021 06:04AM

Re: Rewrite with regex

Francis Daly April 12, 2021 06:20AM

Re: Rewrite with regex

Artur April 12, 2021 08:22AM

Re: Rewrite with regex

Francis Daly April 12, 2021 08:48AM

Re: Rewrite with regex

Artur April 12, 2021 09:02AM

Re: Rewrite with regex

Francis Daly April 12, 2021 05:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready