Code example for Matcher

Methods: end, find, start

0
 
	protected abstract TextRegion createTextRegion(String string);
 
	private int matchLength(String text) {
		matcher = pattern.matcher(text);
		if (matcher.find() && matcher.start() == 0) {
			return matcher.end();
		} 
		return -1; 
	} 
 
	/** 
	 * @return the most recent matcher or NULL if one has not been created yet 
	 */ 
	public Matcher getMatcher() {
		return matcher;
	} 
}