Generate instance of Regex.
Regular expression.
RegExpException if there are any compilation errors.
Declare two variables and assign to them a Regex object:
auto r = Regex("pattern"); auto s = Regex(r"p[1-5]\s*");
See Implementation
Generate instance of Regex.