mirror of
https://github.com/pi-hole/docs.git
synced 2024-12-06 19:27:12 +01:00
Merge pull request #733 from guygastineau/regex-tutorial
Fix error in 'Advanced examples' expression
This commit is contained in:
@@ -119,7 +119,7 @@ Blocks domains containing only numbers (no letters) and ending in `.com` or `.ed
|
||||
### Block domains without subdomains
|
||||
|
||||
```
|
||||
^[a-z0-9]+([\-]{1}[a-z0-9]+)*\.[a-z]{2,7}$
|
||||
^[a-z0-9]+([-]{1}[a-z0-9]+)*\.[a-z]{2,7}$
|
||||
```
|
||||
|
||||
A domain name shall not start or end with a dash but can contain any number of them. It must be followed by a TLD (we assume a valid TLD length of two to seven characters)
|
||||
|
||||
Reference in New Issue
Block a user