Berserk Docs
Scalar FunctionsString Functions

has_cs

Indicate whether a string contains a whole word (case-sensitive, word boundary matching).

Syntax

text has_cs lookup

Negated form:

text !has_cs lookup

Function call syntax:

has_cs(text, lookup)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print "Harald Fairhair united Norway" has_cs "Fairhair"
print_0 (bool)
true

On this page