@Test
	public void testCodeUnitScope_DefinedData() throws Exception {
		//
		// Turn on Defined Data scope and make sure only that scope yields matches
		//
		goTo(0x1001000);// start of program
		setCodeTypeFilters(false, true, false); // only accept defined data matches
		setInput("\\x85");

		performSearchNext(addr(0x1001004));

		// Turn off Defined Data scope and make sure we have no match at the expected address
		goTo(0x1001000);// start of program

		setCodeTypeFilters(true, false, true); // don't accept defined data
		performSearchNext(addr(0x1002d27));

	}
Tests for searching memory for hex reg expression.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/MemSearchRegExTest.java