The Eclipse software has a functionality to search for regular expressions.
I’d like to search for all <version>0.0.1-SNAPSHOT</version> strings whose xml parent node is not <parent>.
What would be the easiest way to do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit: Complete rewrite.
As long as
<parent>tags can’t be nested, this is possible, but only then (and all the usual caveats about not trying to match XML with regexes apply. As soon as you have comments or CDATA sections in your XML, all bets are off).Explanation: