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 
Connect your IDE to all the code out there  Get Codota for Java