I have a large number of records of the following type, which I have to modify
I would like to remove the created_by="29" line without leaving a space. Note: A wild card inside the created_by value would be preferable
I would like to remove the entire line creation_date="..." and the /> greater should move after state="1"/>
Insert a new static line before state variable (e.g. modified_by="30")
XML:
<user id="1"
org_id="3"
created_by="29"
state="1"
creation_date="2010-06-01"/>
What kind of regular expression should I use to change this?