Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

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

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 - a month ago (Last modified a month ago)