0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

俺の正規表現集

Posted at
// https://stackoverflow.com/questions/2063213/regular-expression-for-validating-dns-label-host-name
// ホスト名 (ラベル) は、文字または数字で開始または終了できます
// ホスト名 (ラベル) は、'-' (ダッシュ) で開始または終了してはなりません
// ホスト名 (ラベル) は、すべて数値で構成されてはなりません (MUST NOT)。
// ホスト名 (ラベル) は最大 63 文字です
rfc1123: v => !v || /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{1,63}(?<!-)$/.test(v) || '先頭を英字にして、63 文字以下の英小文字、数字、ハイフンで構成します',

使ったものを記載していく

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?