Notepad++ Majick.

Post » Sun Jul 26, 2015 7:37 pm

I seek help, my Google foo isn't turning up effective results.

I have a file with a phrase and assorted Values, I want to change the Number Values that come after a certain

phrase into one common Value, but no Cigar.

So basically

Runtime: 20

Runtime: 33

Runtime: 53

I want to Find and replace all numbers after said phrase into lets say 10, anyone aware of how to go about this?

I'm nothing notable with using "regular expression" and "extended"

I tried doing

Find- Runtime: [0-9] or [0-99]

Replace with Runtime: [Number here]

But no fritos

I continue to run into the "can't find (what ever is in Find dialog box)" no matter what I do in this instance.

User avatar
Neil
 
Posts: 3357
Joined: Sat Jul 14, 2007 5:08 am

Post » Sun Jul 26, 2015 11:11 am

Runtime: [0-9] would only work with single digits, and Runtime: [0-99] means "0-9 and 9". You'd need Runtime: [0-9]+, which means "One or more instances of 0-9".

User avatar
Vincent Joe
 
Posts: 3370
Joined: Wed Sep 26, 2007 1:13 pm

Post » Mon Jul 27, 2015 12:49 am

Ah and yes I do thank you for pointing that out, but I continue to run into an error stating it can't find the text with whatever iteration I put

in the find box.

Sorry its the early morning over here, heads not clear. I updated the OP.

User avatar
Bad News Rogers
 
Posts: 3356
Joined: Fri Sep 08, 2006 8:37 am

Post » Sun Jul 26, 2015 7:20 pm

Hmm...

The way you posted the values it looks like they have multiple spaces in them. Are you including those?

Otherwise it seems that [0-9]+ is definitely what you'd use to represent any integer number, so I have no idea what else could be wrong.

User avatar
Bereket Fekadu
 
Posts: 3421
Joined: Thu Jul 12, 2007 10:41 pm


Return to Othor Games