Merge pull request #733 from guygastineau/regex-tutorial

Fix error in 'Advanced examples' expression
This commit is contained in:
DL6ER
2022-06-28 21:50:26 +02:00
committed by GitHub
+1 -1
View File
@@ -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)