import java.util.regex.Matcher;
import java.util.regex.Pattern;

class TestClass {
	
    private static final Pattern MY_PATTERN = Pattern.compile("my|regex");
    
    public static void main(final String args[]) {
        final StringBuilder builder = new StringBuilder("This is my, not your, regex!");
        
        final Matcher m = TestClass.MY_PATTERN.matcher(builder);
        builder.replace(0, builder.length(), m.replaceAll("<b>$0</b>"));
        
        System.out.println(builder);
    }
    
}
