-3

Is it possible? Example:

type="0" hp="403587"
type="0" hp="43123"
type="0" hp="445234"

Is there a way for me to search for "hp="(value) " and replace all the values to 0 at the same time ??

Supremo
  • 13
  • 6
  • What you're looking for is searching and replacing by regular expression. N++ provides that as a search mode. – Julian Jan 21 '17 at 03:07

1 Answers1

0

Press "control h" or click "Search" and then "Replace"

enter image description here

SedJ601
  • 12,173
  • 3
  • 41
  • 59
  • Uhmm is there another way?? In the xml file im editing rn there are value that i dont want to set to 0. Heres a sample code in it: neutral = 37281 passive = 233 passive = 3743 passive = 2832 etc. how do i set "passive" value to 0 at the same time? cause theres too many of em. – Supremo Jan 21 '17 at 00:54
  • You question is not clear. I thought you wanted to replace the numbers with zeros. What numbers are you trying to replace? – SedJ601 Jan 21 '17 at 00:56
  • there's supposed to be " after "hp = " i tried doing hp ="[0-10000] but it didnt work. – Supremo Jan 21 '17 at 01:01
  • use [0-9]+. This is a regular expression. – SedJ601 Jan 21 '17 at 01:02
  • 1
    You should check the answer as correct if it meet your standards. – SedJ601 Jan 21 '17 at 01:04
  • Sorry, I can't i need atleast 15 reputation to upvote other people answer – Supremo Jan 21 '17 at 01:06
  • 1
    You should still be able to check below the up vote as correct answer if you asked the question. Technically right below the down vote. – SedJ601 Jan 21 '17 at 01:08