TypedRegExp.exec()method
exec(input: string): TypedRegExpExecArray<T> | null
{
exec(input: string): TypedRegExpExecArray<T> | null;
}Regular expression that matches a specific string format.
exec(input: string): TypedRegExpExecArray<T> | null