function checkRegexObject(reObject) {
    if (typeof reObject !== 'object') {
        return false
    }
    return reObject.re instanceof RegExp && (
        typeof reObject.replacement == 'string'
     || typeof reObject.replacement == 'function'
    )
}

module.exports = {
    checkRegexObject,
}
