0

I have a text file with a list of filenames like so.

ABC-FS01-E-20110515045349.txt

I am trying to find a way in Notepad ++ to parse it like the following.

ABC-FS01-E-2011-05-15

I've tried using Regex, but my syntax is incorrect and I keep getting garbage.

Any thoughts? Thanks!

1
  • My thought: you get what you give... /joke
    – user127350
    May 7, 2013 at 19:10

1 Answer 1

0

RegExp Search:

(ABC-FS[0-9]{2}-E-[0-9]{4})([0-9]{2})([0-9]{2}).*

Replace:

\1-\2-\3

I know what you're thinking: "What kind of sorcery is that?" :)

0

You must log in to answer this question.

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