I am not soo good in RegEx. Can somebody help me to to replace
<MessageParam name="0" desc="Source Queue" />
with
<MessageParam name="0" desc="Source Queue"></MessageParam>
using regular expression
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.
Regex to match:
Replacement string:
You may need to escape the
\character (add an extra\before it).I assume
>does not appear in the value for the attributes, and the XML is valid.More generalized version:
Regex to match:
Replacement string:
For this one, I’m not sure of all the assumptions that I have made. But I still assume
>does not appear in the value for the attributes, and the XML is valid.