public class Test
{
public static void main ( String[] args )
{
if (args.length <= 0)
{
return;
}
String pattern = "^(13[0-9]|15[01]|153|15[6-9]|180|18[23]|18[5-9])\\d{8}$";
System.out.println (args[0].matches (pattern));
}
}
String pattern="^1[3458]\\d{9}$";