private String getTextBetween(String fullString, String str1, String str2) {

		// First figure out which substring is on the left and which is on the right.
		int index1 = fullString.indexOf(str1);
		int index2 = fullString.indexOf(str2);
		if (index1 > index2) {
			String temp = str1;
			str1 = str2;
			str2 = temp;
		}

		String regex = Pattern.quote(str1) + "(.*?)" + Pattern.quote(str2);
		Pattern pattern = Pattern.compile(regex);
		Matcher matcher = pattern.matcher(fullString);
		while (matcher.find()) {
			return matcher.group(1);
		}

		return "";
	}
Uses regex to search a given string for all text between two substrings of
that full string. The position of the two substrings relative to eachother
is unimportant. ie: str1 + <some stuff> + str2 will work just as well as
str2 + <some stuff> + str1. This method will figure out what the correct
order is.

Note: This is used in this test suite to find out if two sql clauses are
		combined using AND's or OR's.
	
@param fullString the full string containing str1 and str2
@param str1 one side of the search
@param str2 the other side of the search
@return all text between str1 and str2
Ghidra/Features/BSim/src/test.slow/java/ghidra/features/bsim/gui/search/dialog/BSimFilterPanelTest.java