Trying to match a specific word using matches()
*//id[matches(.,lower-case('*\s?Xander\s?*'))]
Examples:
Set of Xanderous- No match
Xander Tray of 6- Match
Tray of 6 pieces Xander- Match
Set of 6 Xander pieces- Match
Any instance of the exact word 'Xander' match is the objective.
Roughly, if you want to get the full line matching if it exactly contains the word
Xander, you can use\bwhich delimits a specific word, plus some greedy operators.*:Demo: https://regex101.com/r/PvKptN/1
Or if you don't need the whole line, you can simply check if it contains
Xander:Demo: https://regex101.com/r/PvKptN/2
I hope it satisfies the regex flavor you're using