# REGEX

Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.

## Abstract

SPARQL regex test cases

This page describes W3C SPARQL Working Group's SPARQL 1.0 test suite.

### Contributing Tests

The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.

### Distribution

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.

### Disclaimer

UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

## Test Descriptions

dawg-regex-001: regex-query-001

  Simple unanchored match test

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-result-001.ttl
dawg-regex-002: regex-query-002

  Case insensitive unanchored match test

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-result-002.ttl
dawg-regex-003: regex-query-003

  Use/mention test

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-result-003.ttl
dawg-regex-004: regex-query-004

  str()+URI test

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-result-004.ttl
regex-quantifier-optional: REGEX with an ? quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-optional.srx
regex-quantifier-zero-or-more: REGEX with an * quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-zero-or-more.srx
regex-quantifier-one-or-more: REGEX with a + quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-one-or-more.srx
regex-quantifier-counted-exact: REGEX with an {2} quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-counted-exact.srx
regex-quantifier-counted-lower-bound: REGEX with an {,2} quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-counted-lower-bound.srx
regex-quantifier-counted-lower-upper-bounds: REGEX with an {2,} quantifier
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-quantifier-counted-lower-upper-bounds.srx
regex-dot: REGEX with an . operator
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-dot.srx
regex-dot-all: REGEX with an . operator and the s option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-dot-all.srx
regex-case-insensitive: REGEX with the i option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-case-insensitive.srx
regex-no-metacharacters: REGEX with the q option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-no-metacharacters.srx
regex-no-metacharacters-case-insensitive: REGEX with the iq option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-no-metacharacters.srx
regex-start-end: REGEX with ^ and $
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-start-end.srx
regex-start-end-multiline: REGEX with ^ and $ and m option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-start-end-multiline.srx
regex-char-class-expression: REGEX with [] expression
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-char-class-expression.srx
regex-negative-char-class-expression: REGEX with a [^] expression
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-negative-char-class-expression.srx
regex-ignore-whitespaces: REGEX with the ignore spacing (x) option
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-ignore-whitespaces.srx
regex-ignore-whitespaces-class-expression: REGEX with the ignore spacing (x) option with class expression
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    regex-ignore-whitespaces-class-expression.srx