boolean perl,
boolean fixed,
boolean useBytes) {
RE re = REFactory.compile(pattern, ignoreCase, perl, fixed, useBytes);
return re.subst(x, replacement, ExtendedRE.REPLACE_ALL | ExtendedRE.REPLACE_BACKREFERENCES );
}
/**
* Substitute the all patterns in a string
* @param split a regular expression pattern to look for