in reply to Need help for Xpath patterns
But the result is correct: There is enough whitespace before the <b> tag, for example. You said you wanted multiple spaces between words, so you have to add the "between words" part. I think it is not possible in XPath 1, but as XML::XSH2 was mentioned, you can use it like this://*[contains(., ' ')]
ls //*[xsh:matches(text(),'\b +\b')]
|
|---|