Code example for Matcher

Methods: findstart

0
			mPat = Pattern.compile(pat);
		}//func 
		 
		public String parse(String txt){
			Matcher m = mPat.matcher(txt);
			if(m.find()) return txt.substring(0,m.start()).replace("_"," ").trim();
			return ""; 
		}//func 
	}//cls 
}//cls 
Stop searching for code, let great code find you!  Add Codota to your java IDE