I have a bunch of XML that has lines that look like
<_char font_name="/ITC Stone Serif Std Bold" italic="true" />
but sometimes it looks like
<_char font_size="88175" italic="true" font_name="/ITC Stone Serif Std Bold" />
Here is what i need to do
- Replace italic = "true" with italic = "false for each line containing ITC Stone Serif Std Bold , regardless of whether it appears before OR after the italic part.
Can this be done with a single regex?
I am not looking for real-time solutions. I just have a ton of XML files that have this βerrorβ in them, and I'm trying to do a global search and replace using PowerGrep, which will require one regular expression. If a script is the only way to do this, then so be it.
source share