int searchLen = search.length(); int len = text.length() - searchLen + 1;
char[] textChars = text.toCharArray();
	public int[] nextMatch(String text)	{		int searchLen = search.length();		int len = text.length() - searchLen + 1;		for(int i = 0; i < len; i++)		{			if(text.regionMatches(ignoreCase,i,search,0,searchLen))			{				int[] result = { i, i + searchLen };				return result;			}		}		return null;	}