@Test
	public void testCodeUnitScope_Instructions() throws Exception {
		//
		// Turn on Instructions scope and make sure only that scope yields matches
		//
		goTo(0x1002cf4); // just before instruction hit
		setCodeTypeFilters(true, false, false); // only accept instruction matches

		setInput("\\x55");
		performSearchNext(addr(0x1002cf5));

		// Turn off Instructions scope and make sure we have no match at the expected address
		goTo(0x1002cf4);

		setCodeTypeFilters(false, true, true); // all but instruction matches
		performSearchNext(addr(0x1003000)); // this is in undefined data

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