1

For example my text is :

090111FB2F00LLDEJ3RA
090111FB2F00LLDEJ3RA:N73402363904

I want to delete the first line and keep the second line.

Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
user2887149
  • 11
  • 1
  • 2

1 Answers1

0

This is the way:

Find:

^(\w+?)$\n^(?=\1\:\w+?)

Replace:

<leave empty>

Don't forget to tick the "Regular expression" checkbox in the Replace dialogue before replacing!

Detailed explanation of the regex: http://regex101.com/r/xQ0cY2

psxls
  • 6,807
  • 6
  • 30
  • 50