I'd like to match an input given by user (String) with a value (String) of a specific node existing in rdf file.
I applied the following exact mode for matching (input=NodeValue):
...
FILTER regex (?NodeValue,"userinput$","i").
for this type of matching (input < NodeValue ) I used the following:
...
FILTER regex (?NodeValue,".*userinput.*","i").
So, my question is how to set my regex in order to get the type of matching when (input > NodeValue) I mean a query that's returns a list of ?nodeValue subsumed by a given user input.
Eg. if the user enters patagoniaisbeautiful
it returns patagonia
.
Thank you in advance.