function ibec_re_Replace2(RegExp : variant, InputStr : string, ReplaceStr : string, Substitute : boolean); : string;