com.app.common.validator.AbstractValidator Maven / Gradle / Ivy
The newest version!
package com.app.common.validator;
public abstract class AbstractValidator implements IValidator {
protected static final String errorCode="1003";
protected static final String rangeRegex = "\\[|\\]|\\(|\\)";
final String removeRangeFlag (String target) {
if(target == null){
return "";
}
return target.replaceAll(rangeRegex, "");
}
}