private String convertRelativePathToRegEx(String s) {
		// If the query is relative, add a "match anything" regex pattern to the front of the query
		// so that it will match any number of parent namespaces containing the specified 
		// symbol/namespace path.
		if (!s.isBlank() && isRelativePath) {
			s = ".*" + s;
		}
		return s;
	}
Class for matching symbol names with or without namespace paths and wildcards.
Ghidra/Features/Base/src/main/java/ghidra/app/util/navigation/SymbolMatcher.java