@Override
	public Object nextElement() {
		if (!hasMoreElements()) {return null;}
		
		endIndex = text.indexOf(match,startIndex);
		if (endIndex == -1) {
			endIndex = text.length();
		}
		String token = text.substring(startIndex,endIndex);
		
		startIndex = endIndex + matchLength;
		
		if (startIndex >= text.length()) {
			hasMore = false;
		}
		
		return token;
	}