NamedRegExp.exec()method

exec(input: string): NamedRegExpExecArray<T> | null