Create expression that performs a regex match on a string bin or string value expression.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public static Exp RegexCompare( string regex, uint flags, Exp bin )
Parameters
- regex
- Type: SystemString
regular expression string - flags
- Type: SystemUInt32
regular expression bit flags. See RegexFlag - bin
- Type: Aerospike.ClientExp
string bin or string value expression
Return Value
Type: ExpExamples
// 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