has_prefix/2—determine whether one string has another string as  prefix


The has_prefix/2 operator determines whether one string has another string as  prefix.

$EXPR1 has_prefix $EXPR2

has_prefix/2 arguments

Argument

Type

Description

$EXPR1
STRING

Expression to the left of the operator

$EXPR2
STRING

Expression to the right of the operator

Use  has_prefix/2 to determine whether the value of expression $EXPR1 has the value of $EXPR2 as a prefix.

has_prefix/2 example

$E.mc_host has_prefix 'svc_'

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*