Function aerospike::expressions::regex_compare
source · pub fn regex_compare(
regex: String,
flags: i64,
bin: FilterExpression
) -> FilterExpression
Expand description
Create function like regular expression string operation.
use aerospike::RegexFlag;
use aerospike::expressions::{regex_compare, string_bin};
// Select string bin "a" that starts with "prefix" and ends with "suffix".
// Ignore case and do not match newline.
regex_compare("prefix.*suffix".to_string(), RegexFlag::ICASE as i64 | RegexFlag::NEWLINE as i64, string_bin("a".to_string()));