-1

I have lots of data like this

google3com/forld/umss/damo174_dfhcfg.php  
google3com/forld/umss/damo174_ffg66f.php

I want to replace only the latest 10 character with : VVVVVV.htm

So the result will be like this:

google3com/forld/umss/damo174_VVVVVV.htm
google3com/forld/umss/damo174_VVVVVV.htm

How can I do that?

4
  • Are these lines in a single file, or file names in a single directory, or what?
    – AFH
    Oct 10, 2016 at 13:47
  • 1
    By using a regular expression
    – thilina R
    Oct 10, 2016 at 13:49
  • 1
    Please be more specific: What exactly needs to be replaced? Exactly 10 characters? Everything after _ with varying length? What’s the replacement? VVVVVV doesn’t really look sensible to me. Is it really always the same?
    – Daniel B
    Oct 10, 2016 at 13:52
  • I need last 10 characters to be replaced with "VVVVVV.htm"
    – damove3
    Oct 10, 2016 at 16:34

1 Answer 1

0

For Notepad++ < 6 install RegRexPlace plugin or other plugin, that add regex search/replace functionality.

Notepad++ >= 6 have build-in regex support.

In search field enter _(\d|\w){6}\.php$

In replace field enter _VVVVVV.htm

1
  • There is no need for a plugin. Notepad++ comes with RegEx support built-in.
    – GiantTree
    Oct 10, 2016 at 14:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .