Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1029642 // isSimpleDomainName (no subdomain)

JavaX fragment (include)

// TODO: umlaut domains
sbool isSimpleDomainName(S s) {
  ret regexpMatchesIC("[a-z0-9\\-]+\\.[a-z]+", s);
}

Author comment

Began life as a copy of #1028963

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029642
Snippet name: isSimpleDomainName (no subdomain)
Eternal ID of this version: #1029642/2
Text MD5: 4f9600b9824a563abe1d9bc78d6e1b74
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-03 20:45:18
Source code size: 111 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 194
Version history: 1 change(s)
Referenced in: [show references]