6

I have a load of names in a file in the format Lastname, Firstname:

Williams, Hywel
Williams, MarkĀ 
Williams, Roger
Williams, Stephen
...

Is there a simple way of reversing them in Notepad++, to get each line reversed into Firstname Lastname like so?

Hywel Williams
Mark Williams
Roger Williams
Stephen Williams
...

Or any other simple way of doing this?

random
  • 14,638
  • 9
  • 54
  • 58
fredley
  • 3,417
  • 10
  • 32
  • 43

1 Answers1

7

Use the "Replace" function with a regexp, replacing ^(.+), (.+)$ with \2 \1.

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966