in reply to Re: changing only the first two matches of a regex
in thread changing only the first two matches of a regex

With what you have above, the replace should be $2$4, since you have 4 grouping operators there. Or you could just have "\d+_", or use "(?:\d+_)" as to use $1$2 as others have done later in this thread.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
  • Comment on Re: Re: changing only the first two matches of a regex