dydra / support

4 stars 1 forks source link

Unsupported Unicode category escapes in regular expression #35

Open knoan opened 9 years ago

knoan commented 9 years ago

SPARQL 1.1. regular expression are expected to support unicode category escapes.

Likely not a show-stopper, but definitely useful when processing localized literals.

select (replace('Aa', '\\p{Lu}', 'x') as ?v) {}

Expected: xa Actual: Aa

lisp commented 9 years ago

the regular expression support follows from the facilities available in "portable perl compatible regular expressions". (see http://weitz.de/cl-ppcre/#create-scanner for details)

if some feature of xsd regular expressions, which has no equivalent in ppcre, is required for a significant use case, we can look into extending the cl-ppcre implementation.