Name
DB.DBA.RDF_REGEX — Returns 1 if string s matches pattern p, 0 otherwise.
Synopsis
DB.DBA.RDF_REGEX
(
|
in s varchar , |
in p varchar , | |
in
call
varchar := null
) ; |
Description
Returns 1 if string s matches pattern p, 0 otherwise
Parameters
s
source string to check.
p
regular expression pattern string.
coll
unused for now (modes are not yet implemented).
Return Types
integer
Examples
Example 24.305. Simple example
SQL>SELECT DISTINCT DB.DBA.RDF_QNAME_OF_IID ( /*retval[*/ "s-1-1-t0"."S" /* R */ /*]retval*/ ) AS /*tmpl*/ "R" FROM DB.DBA.RDF_QUAD AS "s-1-1-t0" WHERE /* filter */ DB.DBA.RDF_REGEX ( DB.DBA.RDF_QNAME_OF_IID ( /*retval[*/ "s-1-1-t0"."S" /* R */ /*]retval*/ ), 'http://example.org/' ) OPTION (QUIETCAST) VARCHAR _______________________________________________________________________________ http://example.org/ns#y3 http://example.org/things#xp2 http://example.org/ns#a http://example.org/book/book1 http://example.org/books#book1 http://example.org/books#book2 http://example.org/books#book4 http://example.org/books#book3 http://example.org/book/book2 http://example.org/ns#x2 http://example.org/things#xp1 http://example.org/ns#x3 http://example.org/things#xt1 http://example.org/ns#y1 http://example.org/ns#y2 13 Rows. -- 30 msec.