I can't test with Notepad++ because I don't Windows around, but if I understand your request correctly, it's a simple regex. The key is matching across line boundaries. You match two lines at once, use a capture group for the text in question and the reconstruct the two lines.
So, for example, you can match with:
.*?ItemID="(\d+)" />
and replace with:
< InbagCount($1) />\n< ItemID="$1" />\n
as shown in this website. You may be able to actually convert your code using that website.