Berserk Docs
Scalar FunctionsString Functions

matches regex

Returns true if the string matches the regular expression pattern.

Syntax

text matches regex pattern

See Regex Syntax for the full regular expression reference.

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Siege of Paris 845" matches regex "^Siege"
print_0 (bool)
true

On this page