Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Not exactly a proper answer, but you can start reading here: baeldung.com/linux/evaluate-xpath Commented Nov 2, 2022 at 21:14
  • 1
    Please edit your question and i) add the output you need from this example input. Do you want the email as output? Valid XML as output? Do you want to keep emails matching the conditions or remove them? We can't tell without the expected output. ii) please provide a valid XML input example if you are working with XML. Commented Nov 2, 2022 at 21:21
  • Regarding comment above by WhiteOwl - using an XML capable tool is the right starting point - trying to parse xml with sed is a really bad idea. Commented Nov 2, 2022 at 21:31
  • There is no cnisfCF in the example so it can never be true. Commented Nov 2, 2022 at 22:48