5

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
  • 15,201
fredley
  • 3,457

1 Answers1

6

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

grawity
  • 501,077