pub fn replace( s: &str, pattern: &JValue, replacement: &str, limit: Option<usize>, ) -> Result<JValue, FunctionError>
$replace(str, pattern, replacement, limit) - Replace substring or regex matches