Domain überprüfung

10/27/2020 23:12 Cc_Cc_Cc#1
Hi liebe com,

hab viele Beiträge in Foren oder in Google nachgeschaut hab aber nix gefunden.

Wie kann man eine Domain so überprüfen?

domain.de

am ende mit maximal 2-5 Zeichen und davor maximal 30-35 Zeichen.

mfg
10/28/2020 00:39 Devsome#2
Code:
/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/
[Only registered and activated users can see links. Click Here To Register...]

Erster Google Treffer.

Characters should only be a-z | A-Z | 0-9 and period(.) and dash(-)
The domain name part should not start or end with dash (-) (e.g. -google-.com)
The domain name part should be between 1 and 63 characters long

ggf. regex101.com testen
10/28/2020 18:57 Cc_Cc_Cc#3
Quote:
Originally Posted by Devsome View Post
Code:
/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/
[Only registered and activated users can see links. Click Here To Register...]

Erster Google Treffer.

Characters should only be a-z | A-Z | 0-9 and period(.) and dash(-)
The domain name part should not start or end with dash (-) (e.g. -google-.com)
The domain name part should be between 1 and 63 characters long

ggf. regex101.com testen
Danke dir , dann lag das wohl falsch an meinem Keyword was ich verwendet habe bei der suche.