Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-09-07 11:20
Updated·2025-09-07 11:27
Flavor·PCRE2 (PHP)

/
\?[^\s)\]}>,.:;!\"]+
/
gm
Open regex in editor

Description

Pattern to match all the possible variables in a SPARQL query. It was built on a negation class of the following characters: white spaces, newlines, punctuation (except for ?), closing parenthesis and double quotes.

Submitted by Liber