FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
ContainsStrRegex
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
ContainsStrRegex( value, pattern )
contains_str_regex( value, pattern )
ContainsStrRegex( value, pattern )
ContainsStrRegex( value, pattern )
ContainsStrRegex( value, pattern )
Description
The ContainsStrRegex
function returns true
when the value
string matches
the pattern
regular expression, or false
when it does not.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
String |
The string to compare. |
|
String |
The regular expression to match within |
Returns
Returns a Boolean: true
when value
matches the pattern
regular expression, or false
when it does not.
Examples
The following query demonstrates the case where the value
string
matches the pattern
regular expression:
true
True
true
BooleanV(True)
true
The following query demonstrates the case where the value
string
does not match the pattern
regular expression:
false
False
false
BooleanV(False)
false
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!