Java tutorial
//package com.java2s; public class Main { public static boolean isValidId(String tail) { return tail.matches("[A-Za-z0-9\\-\\.]{1,36}"); } }