added RegExp object support