User blog:NemuriNoMori/Fixing Atk/Def values using Notepad++

For a change, this post isn't going to be about AGG itself, but rather how to update daemon entries for the updated template (which is breaking some of the atk/def value displays) using Notepad++ to minimize the effort.

This works in Notepad++ 4.x (and should in 5.x as well) :

Search for


 * Attack = ([0-9]*)/([0-9]*)

Replace with


 * BaseAtk = \1\n|FinalAtk = \2

Similarly, do the same as above for defense stat:


 * Defense = ([0-9]*)/([0-9]*)


 * BaseDef = \1\n|FinalDef = \2

This way, you can just edit a daemon page -> switch to Source mode -> then copy text to Notepad++, do the above 2 replaces, and copy it back.

After I got this to work, I then tried to create a macro for it - unfortunately I upgraded to 6.x (because macros for search/replace don't work in Notepad 4) and then found out it has a different regex engine altogether :(. I might work on adapting this for the new regex format, but meanwhile I'm posting this to help anyone else who wants to fix the affected pages.