need help replacing multiple "answers" to these lines?
-
Hello, im completely new to NotePad++, and i need help figuring out how to change this all at once. i dont want to sit here and do it all individually lol.
im using a minecraft mod config file and i want to change all the, for example,
“stamina”: 1200to
“stamina”: 9999or,
“speedModifier”: 1.5,to
“speedModifier”: 2,all of the “speedModifier” tokens (I think thats what theyre called) to 2, and all the “stamina” to 9999.
heres an example snip.

Help please!!
-
You have to enable “Regular expression” in Replace and you will add
Find what:"stamina":\s*\d+
Replace with:"stamina": 9999Find what:
"speedModifier":\s*\d+(\.\d+)?
Replace with:"speedModifier": 2You can do each replacement separately, or manage all replacements in a list using the MultiReplace plugin.
-
@Thomas-Knoefel said in need help replacing multiple "answers" to these lines?:
Find what: “speedModifier”:\s*\d+(.\d+)?
THANK YOU SO MUCH!
-
You might also be able to achieve this with the query
@..stamina = 9999; @..speedModifier = 2in the JsonTools plugin.
In this case a regex-based solution as described by Thomas Knoefel will work fine, but if you want more control over how you manipulate your JSON, a JSON parser like JsonTools is likely a better option.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login