I want to create a regular expression that matches with the string
"B. Hello" or "C. Hello" and so on..
I tried number of things and finally came up with this
String REGEX = "[A-Za-z]"+Pattern.quote(".")+" Hello";
but still no luck.. I tries using '\s' for space but still not working. Can anybody help me out with this. Ultimately , i need to do something like this
if("B. Hello".equals(REGEX))
System.out.println("Hello ,B ");
Thank you