method RegExp.compile Private RegExp.compile(pattern: string,flags?: string,): this DeprecatedA legacy feature for browser compatibility Parameters pattern: string optional flags: string Return Type this