I have a site, running on nginx. I need to rewrite URLs like this one:

```
domain.com/blabla/88-aaa-aaaaa-aaaa/qqqq-qqq11-2qq-qqq.html

```

to this

```
domain.com/blabla/aaa-aaaaa-aaaa/qqqq-qqq11-2qq-qqq

```

it means - remove the number after slash, followed by a dash, and then the ".html" extension.

To achieve that, i tried to use 

```
location ~* \/[0-9]{1,4}(-.*)(\.html)$ {
   ......
}

```

but in the location tester, it completely ignores the dash, and matches `.../88aaa...` , which I want to avoid. Then I read, that if the expression contains curly braces, single or double quotes must be used around the expression. So i tried this

```
location ~* "\/[0-9]{1,4}(-.*)(\.html)$" {
   ......
}

```

Still no luck... With the quotes, it fails to match the location in both cases. Could someone please help?