How can I use "contains" in the regex ("Contains" or "%like%")?
I have a regex to match the XML node with exact text:
<([\w]+)[^>]*>sample<\/\1>
It yields the exact Node name, but I want to apply the regex like in C# and SQL (%LIKE%).
Text:
<Part>this is sample part</Part>
<Remarks>this is sample remark</Remarks>
<Notes>this is sample notes</Notes>
<Desc>sample</Desc>
Expected regex result should return all the above nodes, but currently it returns only the last node.
I created a sample here to test.

//*[contains(text(), "sample")]/local-name()"<Notes>this is <SubNote>i'm a hacky sample</SubNote> sample notes</Notes>".