private String checkMatch(Pattern pattern, String comment, String replacementText) {
		if (comment == null) {
			return null;
		}
		Matcher matcher = pattern.matcher(comment);
		if (matcher.find()) {
			return matcher.replaceAll(replacementText);
		}
		return null;
	}
{@link SearchAndReplaceHandler} for handling search and replace for listing comments on 
instructions or data.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/handler/ListingCommentsSearchAndReplaceHandler.java