Java tutorial
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static Boolean isEnglishName(String input) { if (!input.contains("/")) { return false; } String str = "^[a-zA-Z][a-z A-Z/]*$"; Pattern p = Pattern.compile(str); Matcher m = p.matcher(input); return m.matches(); } }