Oihana PHP Arango

notMatch.php

Table of Contents

Functions

notMatch()  : string
Returns an AQL expression that checks if the left string does not match the right regular expression.

Functions

notMatch()

Returns an AQL expression that checks if the left string does not match the right regular expression.

notMatch(mixed $leftOperand, mixed $rightOperand) : string

Equivalent to the ArangoDB !~ regular expression not-match operator.

Example:

  • "foo" !~ "^f[o].$" returns false
  • "bar" !~ "^f[o].$" returns true
Parameters
$leftOperand : mixed

The string value or expression to test.

$rightOperand : mixed

The regular expression pattern.

Tags
example
echo notMatch('"foo"', '"^f[o].$"');
// "foo" !~ "^f[o].$"

echo notMatch('doc.name', '"^[A-Z].+"');
// doc.name !~ "^[A-Z].+"
see
https://docs.arangodb.com/stable/aql/operators/#array-comparison-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results