To find and remove attributes within XML, you can use a variation of the following expressions.
This can be useful if you change/update the schema associated with an XML document and you need to remove lots of obsolete attributes.
To find all attributes called name, you would use this expression: ( Name="[^"]*")
i.e. When used against this XML fragment
<Field ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="Comments" Group="_Hidden" />
Result: [ Name="Comments"]
If I used this expression: ( Group="[^"]*") on the same XML
Result: [ Group="_Hidden"]
Note1: Other attempts to return just the attribute required usually returns a string starting at the beginning of the attribute and ending somewhere towards the end of the node. Please always test your expression with a find only (Ctrl + F) before you replace (Ctrl + H) anything.
Note2: These expressions include a space before the attribute. Do not remove this space or you may find attributes that "contain" your reguired attribute name: i.e. HiddenName="..." as well as Name="...".