Regex

Regex.new

Constructs a new Regex object using the specified pattern.

Syntax

Regex.new(pattern: string): Regex