Well this is supposed to be regular expression question But I am trying to use java here. Want to make a java program to read file and from that on cmd line print all lines that contain a // (Commeted code ) with escape characters I Am able to get it working for // Pattern p2 = Pattern.compile("\\/\\/"); Matcher m2 = ...