C
COGE
Bekanntes Mitglied
ich bräuchte eine für C#, die feststellt, ob ein string so aussieht
max 62 Buchstaben und Zahlen
. und - sind erlaubt
- ist nicht am Anfang und Ende eines Teilstrings erlaubt
OK:
web
123hallo
web123
web.de
hallo-du.de
hallo1.de
123hallo.de
Nicht OK:
hallo-.de
-hallo.de
hallo-
-hallo
ich werd noch verrückt mit dem Zeug
max 62 Buchstaben und Zahlen
. und - sind erlaubt
- ist nicht am Anfang und Ende eines Teilstrings erlaubt
OK:
web
123hallo
web123
web.de
hallo-du.de
hallo1.de
123hallo.de
Nicht OK:
hallo-.de
-hallo.de
hallo-
-hallo
ich werd noch verrückt mit dem Zeug