<name type="personal">\n[ \t]+<displayForm>Trust</displayForm>
should accurately match
Code: Select all
(I'm doing a find replace "personal" with "corporate" where displayForm="trust") but it doesn't work. Any ideas why oxygen's regex is different from the web engine I'm testing on?
It is also possible this could easily be done with xquery, I can identify the attributes but I don't know how to change the value.
//mods:displayForm[text()[contains(.,'Trust')]]/ancestor::mods:name/@type correctly identifies the "personal" attributes I need to change.