ContainsStrRegex
Not available in this language yet.
Not available in this language yet.
ContainsStrRegex( value, pattern )
ContainsStrRegex( value, pattern )
Not available in this language yet.
Not available in this language yet.
ContainsStrRegex( value, pattern )
Not available in this language yet.
Description
The ContainsStrRegex
function returns true
when the value
string
matches the pattern
regular expression, or false
when it does not.
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:
Not available in this language yet.
Not available in this language yet.
System.out.println(
client.query(
ContainsStrRegex("Fauna", "(Fa|na)")
).get()
);
client.query(
q.ContainsStrRegex('Fauna', '(Fa|na)')
)
.then(ret => console.log(ret))
Not available in this language yet.
Not available in this language yet.
println(Await.result(
client.query(
ContainsStrRegex("Fauna", "(Fa|na)"),
),
5.seconds
))
Not available in this language yet.
true
true
true
The following query demonstrates the case where the value
string
does not match the pattern
regular expression:
Not available in this language yet.
Not available in this language yet.
System.out.println(
client.query(
ContainsStrRegex("Fauna", ".Faa*")
).get()
);
client.query(
q.ContainsStrRegex('Fauna', '.Faa*')
)
.then(ret => console.log(ret))
Not available in this language yet.
Not available in this language yet.
println(Await.result(
client.query(
ContainsStrRegex("Fauna", ".Faa*"),
),
5.seconds
))
Not available in this language yet.
false
false
false
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!