i do not test it the code yet, because I don’t see the “keyword” of “Player” in your code, i assume another data who have “keyword” “Atk” will change to 999 too if i using your code, and i want to edit “Atk” only in “ID:Player” stats,
thank you again for your reply, i really appreciate it
Good deal. Hopefully this helps with your research.
Single line mode
(?s) for “single line mode” makes the dot match all characters, including line breaks.
This is why it required -Raw, making the entire text one line instead of multi line. It would’ve been much harder to achieve your desired result going line by line.
Positive Lookbehind
(?<=…)
Ensures that the given pattern will match, ending at the current position in the expression. The pattern must have a fixed width. Does not consume any characters.
This is what allowed it to only match when the specified text that came before.
\d matches any numeric character. {2,3} turned that into “match 2 or 3 numeric characters only”