ExpRegexCompare Method

Create expression that performs a regex match on a string bin or string value expression.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp RegexCompare(
	string regex,
	uint flags,
	Exp bin
)

Parameters

regex  String
regular expression string
flags  UInt32
regular expression bit flags. See RegexFlag
bin  Exp
string bin or string value expression

Return Value

Exp

Example

C#
// Select string bin "a" that starts with "prefix" and ends with "suffix".
// Ignore case and do not match newline.
Exp.RegexCompare("prefix.*suffix", RegexFlag.ICASE | RegexFlag.NEWLINE, Exp.StringBin("a"))

See Also