Format.IsRegex

Returns true if the string is a regular expression

Function

const R = Format.IsRegex('^\\d{3}-\\d{2}-\\d{4}$')

Schema

{ format: 'regex' }