All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javers.common.string.RegexEscape Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
package org.javers.common.string;

/**
 * @author bartosz.walacik
 */
public class RegexEscape {
    private static final String TO_ESCAPE = "\\.[]{}()*+-?^$|";

    public static String escape(String literal) {
        String escaped = literal;
        for (int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy