On Mon, Jan 20, 2014 at 8:48 PM, Martynas Jusevičius
<marty...@graphity.org> wrote:
> OK maybe "+35" was a bad example. But isn't "+" a special char in
> SPARQL regex? And there are more like "*", "?" etc.
> http://www.w3.org/TR/xpath-functions/#regex-syntax


Oh, good point.  But if it needs to be escape with a slash, then wouldn't

   filter regex(str(?label), "\+35")

be fine?  Note that if you're constructing this programmatically, you
might end up writing code like

    String queryString = ... + "filter regex(str(?label), \"\\+35\")" + ...;

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/

Reply via email to